Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 288 for Sets (0.12 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/TestStringSetGenerator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Strings;
    import java.util.List;
    import java.util.Set;
    
    /**
     * Create string sets for collection tests.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestStringSetGenerator implements TestSetGenerator<String> {
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/MultipleSetContainsBenchmark.java

          double setSize = rng.nextDouble();
          if (setSize < emptySetProportion) {
            sets[i] = ImmutableSet.of();
          } else if (setSize < emptySetProportion + singletonSetProportion) {
            sets[i] = ImmutableSet.of(PRESENT);
          } else {
            sets[i] = ImmutableSet.of(PRESENT, new Object());
          }
    
          if (rng.nextDouble() < hitRate) {
            queries[i] = PRESENT;
          } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Lists;
    import com.google.common.collect.MapMaker;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Sets;
    import com.google.j2objc.annotations.Weak;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.EnumMap;
    import java.util.List;
    import java.util.Map;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java

      }
    
      @Override
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
      @Override
      NavigableSet<E> createElementSet() {
        return Sets.unmodifiableNavigableSet(delegate().elementSet());
      }
    
      @Override
      public NavigableSet<E> elementSet() {
        return (NavigableSet<E>) super.elementSet();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractChainedListenableFutureTest.java

      }
    
      /**
       * Override to return a chaining listenableFuture that returns the result of getSuccessfulResult()
       * when inputFuture returns VALID_INPUT_DATA, and sets the exception to EXCEPTION in all other
       * cases.
       */
      protected abstract ListenableFuture<T> buildChainingFuture(ListenableFuture<Integer> inputFuture);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

            while (!aa.weakCompareAndSet(i, prev, x)) {;
            }
            assertBitEquals(x, aa.get(i));
            prev = x;
          }
        }
      }
    
      /** getAndSet returns previous value and sets to given value at given index */
      public void testGetAndSet() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i : new int[] {0, SIZE - 1}) {
          double prev = 0.0;
          for (double x : VALUES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

    import java.util.Arrays;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.List;
    import java.util.Set;
    import java.util.SortedSet;
    
    /**
     * Generators of different types of sets and derived collections from sets.
     *
     * @author Kevin Bourrillion
     * @author Jared Levy
     * @author Hayward Chan
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class SetGenerators {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/FakeTicker.java

      @SuppressWarnings("Java7ApiChecker") // guava-android can rely on library desugaring now.
      public FakeTicker advance(Duration duration) {
        return advance(duration.toNanos());
      }
    
      /**
       * Sets the increment applied to the ticker whenever it is queried.
       *
       * <p>The default behavior is to auto increment by zero. i.e: The ticker is left unchanged when
       * queried.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 14:40:46 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Sets;
    import com.google.common.collect.testing.Helpers;
    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.collect.testing.features.MapFeature;
    import com.google.common.testing.EqualsTester;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedListMultimap.java

           * requireNonNull is safe as long as callers pass a nextSibling that (a) has the same key and
           * (b) is present in the multimap. (And they do, except maybe in case of concurrent
           * modification, in which case all bets are off.)
           */
          KeyList<K, V> keyList = requireNonNull(keyToKeyList.get(key));
          keyList.count++;
          node.previous = nextSibling.previous;
          node.previousSibling = nextSibling.previousSibling;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
Back to top