Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for samples_ (0.06 sec)

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

    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Creates map entries using sample keys and sample values.
     *
     * @author Jesse Wilson
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestMapEntrySetGenerator<
            K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          this.entryComparator = entryComparator(emptyMap.comparator());
    
          // derive values for inclusive filtering from the input samples
          SampleElements<Entry<K, V>> samples = delegate.samples();
          List<Entry<K, V>> samplesList =
              asList(samples.e0(), samples.e1(), samples.e2(), samples.e3(), samples.e4());
          sort(samplesList, entryComparator);
          this.firstInclusive = samplesList.get(0).getKey();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java

    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Creates map entries using sample keys and sample values.
     *
     * @author Jesse Wilson
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestMapEntrySetGenerator<
            K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

      }
    
      protected final E e0() {
        return samples.e0();
      }
    
      protected final E e1() {
        return samples.e1();
      }
    
      protected final E e2() {
        return samples.e2();
      }
    
      protected final E e3() {
        return samples.e3();
      }
    
      protected final E e4() {
        return samples.e4();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SetsTest.java

                ImmutableSet.of(1, 2),
                ImmutableSet.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
        for (Set<Integer> sampleSet : sampleSets) {
          for (int k = 0; k <= sampleSet.size(); k++) {
            final int size = k;
            Set<Set<Integer>> expected =
                Sets.filter(
                    Sets.powerSet(sampleSet),
                    new Predicate<Set<Integer>>() {
    
                      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

        }
    
        @Override
        public SampleElements<Entry<V, K>> samples() {
          SampleElements<Entry<K, V>> samples = generator.samples();
          return new SampleElements<>(
              reverse(samples.e0()),
              reverse(samples.e1()),
              reverse(samples.e2()),
              reverse(samples.e3()),
              reverse(samples.e4()));
        }
    
        private Entry<V, K> reverse(Entry<K, V> entry) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java

        getList().replaceAll(e -> samples.e3());
        expectContents(nCopies(getNumElements(), samples.e3()));
      }
    
      @ListFeature.Require(SUPPORTS_SET)
      public void testReplaceAll_changesSome() {
        getList().replaceAll(e -> e.equals(samples.e0()) ? samples.e3() : e);
        E[] expected = createSamplesArray();
        for (int i = 0; i < expected.length; i++) {
          if (expected[i].equals(samples.e0())) {
            expected[i] = samples.e3();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

        }
    
        @Override
        public SampleElements<Entry<V, K>> samples() {
          SampleElements<Entry<K, V>> samples = generator.samples();
          return new SampleElements<>(
              reverse(samples.e0()),
              reverse(samples.e1()),
              reverse(samples.e2()),
              reverse(samples.e3()),
              reverse(samples.e4()));
        }
    
        private Entry<V, K> reverse(Entry<K, V> entry) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

        public SampleElements<Multiset.Entry<E>> samples() {
          SampleElements<E> samples = gen.samples();
          return new SampleElements<>(
              Multisets.immutableEntry(samples.e0(), 3),
              Multisets.immutableEntry(samples.e1(), 4),
              Multisets.immutableEntry(samples.e2(), 1),
              Multisets.immutableEntry(samples.e3(), 5),
              Multisets.immutableEntry(samples.e4(), 2));
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

        public SampleElements<Multiset.Entry<E>> samples() {
          SampleElements<E> samples = gen.samples();
          return new SampleElements<>(
              Multisets.immutableEntry(samples.e0(), 3),
              Multisets.immutableEntry(samples.e1(), 4),
              Multisets.immutableEntry(samples.e2(), 1),
              Multisets.immutableEntry(samples.e3(), 5),
              Multisets.immutableEntry(samples.e4(), 2));
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top