Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Chan (0.16 sec)

  1. android/guava/src/com/google/common/collect/Iterators.java

       * @param defaultValue the default value to return if the iterator is empty or if {@code position}
       *     is greater than the number of elements remaining in {@code iterator}
       * @return the element at the specified position in {@code iterator} or {@code defaultValue} if
       *     {@code iterator} produces fewer than {@code position + 1} elements.
       * @throws IndexOutOfBoundsException if {@code position} is negative
       * @since 4.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      /**
       * This method returns a {@code ImmutableSortedMap}, consisting of the entries whose keys are less
       * than {@code toKey}.
       *
       * <p>The {@link SortedMap#headMap} documentation states that a submap of a submap throws an
       * {@link IllegalArgumentException} if passed a {@code toKey} greater than an earlier {@code
       * toKey}. However, this method doesn't throw an exception in that situation, but instead keeps
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Preconditions.java

       * @param size the size of that array, list or string
       * @throws IndexOutOfBoundsException if either index is negative or is greater than {@code size},
       *     or if {@code end} is less than {@code start}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      public static void checkPositionIndexes(int start, int end, int size) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/IteratorsTest.java

            return Iterators.forArray(1, 2, 3);
          }
        }.test();
      }
    
      /*
       * TODO(cpovirk): Test forArray with ListIteratorTester (not just IteratorTester), including with
       * a start position other than 0.
       */
    
      public void testForEnumerationEmpty() {
        Enumeration<Integer> enumer = enumerate();
        Iterator<Integer> iter = Iterators.forEnumeration(enumer);
    
        assertFalse(iter.hasNext());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      /**
       * This method returns a {@code ImmutableSortedMap}, consisting of the entries whose keys are less
       * than {@code toKey}.
       *
       * <p>The {@link SortedMap#headMap} documentation states that a submap of a submap throws an
       * {@link IllegalArgumentException} if passed a {@code toKey} greater than an earlier {@code
       * toKey}. However, this method doesn't throw an exception in that situation, but instead keeps
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          return super.cancel(mayInterruptIfRunning);
        }
      }
    
      static final LazyLogger log = new LazyLogger(AbstractFuture.class);
    
      // A heuristic for timed gets. If the remaining timeout is less than this, spin instead of
      // blocking. This value is what AbstractQueuedSynchronizer uses.
      private static final long SPIN_THRESHOLD_NANOS = 1000L;
    
      private static final AtomicHelper ATOMIC_HELPER;
    
      static {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Synchronized.java

        @Override
        public @Nullable Object[] toArray() {
          synchronized (mutex) {
            /*
             * toArrayImpl returns `@Nullable Object[]` rather than `Object[]` but only because it can
             * be used with collections that may contain null. This collection never contains nulls, so
             * we could return `Object[]`. But this class is private and J2KT cannot change return types
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapsTest.java

            Maps.uniqueIndex(
                INT_TO_STRING_MAP.values().iterator(), Functions.forMap(INT_TO_STRING_MAP.inverse()));
        assertEquals(INT_TO_STRING_MAP, outputMap);
      }
    
      /** Can't create the map if more than one value maps to the same key. */
      public void testUniqueIndexDuplicates() {
        try {
          Map<Integer, String> unused =
              Maps.uniqueIndex(ImmutableSet.of("one", "uno"), Functions.constant(1));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

            Maps.uniqueIndex(
                INT_TO_STRING_MAP.values().iterator(), Functions.forMap(INT_TO_STRING_MAP.inverse()));
        assertEquals(INT_TO_STRING_MAP, outputMap);
      }
    
      /** Can't create the map if more than one value maps to the same key. */
      public void testUniqueIndexDuplicates() {
        try {
          Map<Integer, String> unused =
              Maps.uniqueIndex(ImmutableSet.of("one", "uno"), Functions.constant(1));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/CharMatcher.java

       * @param start the first index to examine; must be nonnegative and no greater than {@code
       *     sequence.length()}
       * @return the index of the first matching character, guaranteed to be no less than {@code start},
       *     or {@code -1} if no character matches
       * @throws IndexOutOfBoundsException if start is negative or greater than {@code
       *     sequence.length()}
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
Back to top