Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for HashSet (0.15 sec)

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

    import com.google.common.collect.testing.testers.SetRemoveTester;
    import com.google.common.testing.SerializableTester;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Set;
    import junit.framework.TestSuite;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a Set implementation.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java

    import com.google.common.collect.testing.testers.ListToArrayTester;
    import com.google.common.testing.SerializableTester;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Set;
    import junit.framework.TestSuite;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a List
     * implementation.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      public void testNewHashSetEmpty() {
        HashSet<Integer> set = Sets.newHashSet();
        verifySetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewHashSetVarArgs() {
        HashSet<Integer> set = Sets.newHashSet(0, 1, 1);
        verifySetContents(set, Arrays.asList(0, 1));
      }
    
      public void testNewHashSetFromCollection() {
        HashSet<Integer> set = Sets.newHashSet(SOME_COLLECTION);
    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)
  4. guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

    package com.google.common.graph;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableSet;
    import java.util.HashSet;
    import java.util.Set;
    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    @RunWith(JUnit4.class)
    public final class InvalidatableSetTest {
      Set<Integer> wrappedSet;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/InvalidatableSetTest.java

    package com.google.common.graph;
    
    import static com.google.common.truth.Truth.assertThat;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableSet;
    import java.util.HashSet;
    import java.util.Set;
    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    @RunWith(JUnit4.class)
    public final class InvalidatableSetTest {
      Set<Integer> wrappedSet;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/EnumsTest.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.ref.WeakReference;
    import java.lang.reflect.Field;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.util.HashSet;
    import java.util.Set;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link Enums}.
     *
     * @author Steve McKay
     */
    @GwtIncompatible
    @J2ktIncompatible
    public class EnumsTest extends TestCase {
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                new TestStringSetGenerator() {
                  @Override
                  public Set<String> create(String[] elements) {
                    return new HashSet<>(MinimalCollection.of(elements));
                  }
                })
            .named("HashSet")
            .withFeatures(
                SetFeature.GENERAL_PURPOSE,
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetOperationsTest.java

        Set<String> all = Sets.union(friends, enemies);
        assertEquals(5, all.size());
    
        ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy();
        HashSet<String> mut = Sets.union(friends, enemies).copyInto(new HashSet<String>());
    
        enemies.add("Buck");
        assertEquals(6, all.size());
        assertEquals(5, immut.size());
        assertEquals(5, mut.size());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SetOperationsTest.java

        Set<String> all = Sets.union(friends, enemies);
        assertEquals(5, all.size());
    
        ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy();
        HashSet<String> mut = Sets.union(friends, enemies).copyInto(new HashSet<String>());
    
        enemies.add("Buck");
        assertEquals(6, all.size());
        assertEquals(5, immut.size());
        assertEquals(5, mut.size());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java

    import com.google.common.collect.testing.testers.SetCreationTester;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Map.Entry;
    import java.util.Set;
    import junit.framework.TestSuite;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a {@code BiMap}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.8K bytes
    - Viewed (0)
Back to top