Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 943 for SET (0.12 sec)

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

      }
    
      public void testPowerSetShowOff() {
        Set<Object> zero = ImmutableSet.of();
        Set<Set<Object>> one = powerSet(zero);
        Set<Set<Set<Object>>> two = powerSet(one);
        Set<Set<Set<Set<Object>>>> four = powerSet(two);
        Set<Set<Set<Set<Set<Object>>>>> sixteen = powerSet(four);
        Set<Set<Set<Set<Set<Set<Object>>>>>> sixtyFiveThousandish = powerSet(sixteen);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Set<String> set = of("a", "b");
        assertEquals(Sets.newHashSet("a", "b"), set);
      }
    
      public void testCreation_threeElements() {
        Set<String> set = of("a", "b", "c");
        assertEquals(Sets.newHashSet("a", "b", "c"), set);
      }
    
      public void testCreation_fourElements() {
        Set<String> set = of("a", "b", "c", "d");
        assertEquals(Sets.newHashSet("a", "b", "c", "d"), set);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Set<String> set = of("a", "b");
        assertEquals(Sets.newHashSet("a", "b"), set);
      }
    
      public void testCreation_threeElements() {
        Set<String> set = of("a", "b", "c");
        assertEquals(Sets.newHashSet("a", "b", "c"), set);
      }
    
      public void testCreation_fourElements() {
        Set<String> set = of("a", "b", "c", "d");
        assertEquals(Sets.newHashSet("a", "b", "c", "d"), set);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/CompactHashSetTest.java

                        return set;
                      }
                    })
                .named("CompactHashSet#TrimToSize")
                .withFeatures(allFeatures)
                .createTestSuite());
        return suite;
      }
    
      public void testAllocArraysDefault() {
        CompactHashSet<Integer> set = CompactHashSet.create();
        assertThat(set.needsAllocArrays()).isTrue();
        assertThat(set.elements).isNull();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/CompactHashSetTest.java

        assertThat(set.elements).hasLength(CompactHashing.DEFAULT_SIZE);
      }
    
      public void testAllocArraysExpectedSize() {
        for (int i = 0; i <= CompactHashing.DEFAULT_SIZE; i++) {
          CompactHashSet<Integer> set = CompactHashSet.createWithExpectedSize(i);
          assertThat(set.needsAllocArrays()).isTrue();
          assertThat(set.elements).isNull();
    
          set.add(1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/collect/testing/SafeTreeSetTest.java

        assertEquals(set.comparator(), copy.comparator());
      }
    
      @GwtIncompatible // SerializableTester
      public void testSeveral_serialization() {
        SortedSet<String> set = new SafeTreeSet<>();
        set.add("a");
        set.add("b");
        set.add("c");
        SortedSet<String> copy = SerializableTester.reserializeAndAssert(set);
        assertEquals(set.comparator(), copy.comparator());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeSetTest.java

        assertEquals(set.comparator(), copy.comparator());
      }
    
      @GwtIncompatible // SerializableTester
      public void testSeveral_serialization() {
        SortedSet<String> set = new SafeTreeSet<>();
        set.add("a");
        set.add("b");
        set.add("c");
        SortedSet<String> copy = SerializableTester.reserializeAndAssert(set);
        assertEquals(set.comparator(), copy.comparator());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        for (int i = 0; i < inputSize; i++) {
          builder.add(i % setSize);
        }
        ImmutableSet<Integer> set = builder.build();
        assertTrue(set instanceof RegularImmutableSet);
        assertEquals(
            "Input size " + inputSize + " and set size " + setSize,
            tableSize,
            ((RegularImmutableSet<Integer>) set).table.length);
      }
    
      public void testCopyOf_copiesImmutableSortedSet() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SetMultimap.java

     * common to all multimaps.
     *
     * <p>The {@link #get}, {@link #removeAll}, and {@link #replaceValues} methods each return a {@link
     * Set} of values, while {@link #entries} returns a {@code Set} of map entries. Though the method
     * signature doesn't say so explicitly, the map returned by {@link #asMap} has {@code Set} values.
     *
     * <p>If the values corresponding to a single key should be ordered according to a {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java

    import java.util.Collections;
    import java.util.Set;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Encapsulates the constraints that a class under test must satisfy in order for a tester method to
     * be run against that class.
     *
     * @author George van den Driessche
     */
    @GwtCompatible
    public final class TesterRequirements {
      private final Set<Feature<?>> presentFeatures;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 20 11:19:03 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top