Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 745 for Clement (0.24 sec)

  1. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

      }
    
      public void testPutAll() {
        int element1 = 1;
        int element2 = 2;
    
        BloomFilter<Integer> bf1 = BloomFilter.create(Funnels.integerFunnel(), 100);
        bf1.put(element1);
        assertTrue(bf1.mightContain(element1));
        assertFalse(bf1.mightContain(element2));
    
        BloomFilter<Integer> bf2 = BloomFilter.create(Funnels.integerFunnel(), 100);
        bf2.put(element2);
        assertFalse(bf2.mightContain(element1));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java

      public SampleElements<Object> samples() {
        return new Colliders();
      }
    
      @Override
      public Object[] createArray(int length) {
        return new Object[length];
      }
    
      /** Returns the original element list, unchanged. */
      @Override
      public List<Object> order(List<Object> insertionOrder) {
        return insertionOrder;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ListsImplTest.java

      /** Describes how a list is modifiable */
      public enum Modifiability {
        NONE, // immutable lists
        BY_ELEMENT, // elements can change (set), but not structure
        DIRECT_ONLY, // Element can be added and removed only via direct calls, not through iterators
        ALL // Elements can be added and removed as well as modified.
      }
    
      /** Handles the creation of lists needed for the tests */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

      }
    
      private SafeTreeSet(NavigableSet<E> delegate) {
        this.delegate = delegate;
        for (E e : this) {
          checkValid(e);
        }
      }
    
      @Override
      public boolean add(E element) {
        return delegate.add(checkValid(element));
      }
    
      @Override
      public boolean addAll(Collection<? extends E> collection) {
        for (E e : collection) {
          checkValid(e);
        }
        return delegate.addAll(collection);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IteratorsTest.java

      private static final class PickyIterable<E> implements Iterable<E> {
        final List<E> elements;
        int modCount = 0;
    
        PickyIterable(E... elements) {
          this.elements = new ArrayList<E>(asList(elements));
        }
    
        @Override
        public Iterator<E> iterator() {
          return new PickyIterator();
        }
    
    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)
  6. android/guava/src/com/google/common/collect/HashBiMap.java

      transient @Nullable V[] values;
    
      transient int size;
      transient int modCount;
      /** Maps a bucket to the "entry" of its first element. */
      private transient int[] hashTableKToV;
      /** Maps a bucket to the "entry" of its first element. */
      private transient int[] hashTableVToK;
      /** Maps an "entry" to the "entry" that follows it in its bucket. */
      private transient int[] nextInBucketKToV;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/math/Quantiles.java

        // If we are looking for the least element in the range, we can just do a linear search for it.
        // (We will hit this whenever we are doing quantile interpolation: our first selection finds
        // the lower value, our second one finds the upper value by looking for the next least element.)
        if (required == from) {
          int min = from;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        }
    
        @Override
        public List<Double> create(Object... elements) {
          Double[] array = new Double[elements.length];
          int i = 0;
          for (Object e : elements) {
            array[i++] = (Double) e;
          }
          return create(array);
        }
    
        /**
         * Creates a new collection containing the given elements; implement this method instead of
         * {@link #create(Object...)}.
         */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

          return makeArray(all).subArray(0, elements.length).asList();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only from suite
      public static final class ImmutableLongArrayTailSubListAsListGenerator
          extends TestLongListGenerator {
        @Override
        protected List<Long> create(Long[] elements) {
          Long[] prefix = {86L, 99L};
          Long[] all = concat(prefix, elements);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

       *       UnsupportedOperationException when those mutators are called.
       * </ol>
       *
       * @param collection the presumed-immutable collection
       * @param sampleElement an element of the same type as that contained by {@code collection}.
       *     {@code collection} may or may not have {@code sampleElement} as a member.
       */
      public static <E extends @Nullable Object> void assertCollectionIsUnmodifiable(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
Back to top