Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for v_size (0.19 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        }
      }
    
      public void testSize0() {
        Iterator<String> iterator = Iterators.emptyIterator();
        assertEquals(0, Iterators.size(iterator));
      }
    
      public void testSize1() {
        Iterator<Integer> iterator = Collections.singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
      public void testSize_partiallyConsumed() {
        Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator();
    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)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          return null;
        }
        return entry.getValue();
      }
    
      @SuppressWarnings("unchecked")
      final Segment<K, V, E, S>[] newSegmentArray(int ssize) {
        return (Segment<K, V, E, S>[]) new Segment<?, ?, ?, ?>[ssize];
      }
    
      // Inner Classes
    
      /**
       * Segments are specialized versions of hash tables. This subclass inherits from ReentrantLock
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

      public static <E> Set<Set<E>> combinations(Set<E> set, final int size) {
        final ImmutableMap<E, Integer> index = Maps.indexMap(set);
        checkNonnegative(size, "size");
        checkArgument(size <= index.size(), "size (%s) must be <= set.size() (%s)", size, index.size());
        if (size == 0) {
          return ImmutableSet.<Set<E>>of(ImmutableSet.<E>of());
        } else if (size == index.size()) {
          return ImmutableSet.<Set<E>>of(index.keySet());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/CharMatcher.java

        }
      }
    
      @GwtIncompatible // SmallCharMatcher
      private static boolean isSmall(int totalCharacters, int tableLength) {
        return totalCharacters <= SmallCharMatcher.MAX_SIZE
            && tableLength > (totalCharacters * 4 * Character.SIZE);
        // err on the side of BitSetMatcher
      }
    
      /** Sets bits in {@code table} matched by this matcher. */
      @GwtIncompatible // used only from other GwtIncompatible code
    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)
  5. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(Integer.class, TypeToken.of(Integer.class).getType());
      }
    
      public void testMethod_getOwnerType() throws NoSuchMethodException {
        Method sizeMethod = List.class.getMethod("size");
        assertEquals(
            TypeToken.of(List.class), TypeToken.of(List.class).method(sizeMethod).getOwnerType());
        assertEquals(
            new TypeToken<List<String>>() {},
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        }
      }
    
      public void testSize0() {
        Iterator<String> iterator = Iterators.emptyIterator();
        assertEquals(0, Iterators.size(iterator));
      }
    
      public void testSize1() {
        Iterator<Integer> iterator = Collections.singleton(0).iterator();
        assertEquals(1, Iterators.size(iterator));
      }
    
      public void testSize_partiallyConsumed() {
        Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterators.java

       *     partitions
       * @throws IllegalArgumentException if {@code size} is nonpositive
       */
      public static <T extends @Nullable Object> UnmodifiableIterator<List<T>> partition(
          Iterator<T> iterator, int size) {
        return partitionImpl(iterator, size, false);
      }
    
      /**
       * Divides an iterator into unmodifiable sublists of the given size, padding the final iterator
    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)
  8. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertEquals(Integer.class, TypeToken.of(Integer.class).getType());
      }
    
      public void testMethod_getOwnerType() throws NoSuchMethodException {
        Method sizeMethod = List.class.getMethod("size");
        assertEquals(
            TypeToken.of(List.class), TypeToken.of(List.class).method(sizeMethod).getOwnerType());
        assertEquals(
            new TypeToken<List<String>>() {},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top