Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 218 for creation (0.21 sec)

  1. android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /** @author Kevin Bourrillion */
    @GwtCompatible(emulated = true)
    public class ImmutableLongArrayTest extends TestCase {
      // Test all creation paths very lazily: by assuming asList() works
    
      public void testOf0() {
        assertThat(ImmutableLongArray.of().asList()).isEmpty();
      }
    
      public void testOf1() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 19K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ListsImplTest.java

        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 */
      public abstract static class ListExample {
    
        private final String name;
        private final Modifiability modifiability;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

                    MapFeature.REJECTS_DUPLICATES_AT_CREATION,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES)
                .suppressing(BiMapInverseTester.getInverseSameAfterSerializingMethods())
                .createTestSuite());
        suite.addTestSuite(ImmutableBiMapTest.class);
    
        return suite;
      }
    
      // Creation tests
    
      public void testEmptyBuilder() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/TestStringCollectionGenerator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Strings;
    import java.util.Collection;
    import java.util.List;
    
    /**
     * String creation for testing arbitrary collections.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestStringCollectionGenerator implements TestCollectionGenerator<String> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/collect/SetCreationBenchmark.java

      private CollectionBenchmarkSampleData sampleData;
    
      @BeforeExperiment
      void setUp() {
        sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size);
      }
    
      @Benchmark
      int creation(int reps) {
        int x = 0;
        for (int i = 0; i < reps; i++) {
          x ^= System.identityHashCode(impl.create(sampleData.getValuesInSet()));
        }
        return x;
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    
    /** @author Kevin Bourrillion */
    @GwtCompatible(emulated = true)
    public class ImmutableDoubleArrayTest extends TestCase {
      // Test all creation paths very lazily: by assuming asList() works
    
      public void testOf0() {
        assertThat(ImmutableDoubleArray.of().asList()).isEmpty();
      }
    
      public void testOf1() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/collect/SetCreationBenchmark.java

      private CollectionBenchmarkSampleData sampleData;
    
      @BeforeExperiment
      void setUp() {
        sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size);
      }
    
      @Benchmark
      int creation(int reps) {
        int x = 0;
        for (int i = 0; i < reps; i++) {
          x ^= System.identityHashCode(impl.create(sampleData.getValuesInSet()));
        }
        return x;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

                .named("ImmutableSet.asList")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
        suite.addTestSuite(ImmutableSetTest.class);
    
        return suite;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 2.0 (implements {@code NavigableSet} since 12.0)
     */
    // TODO(benyu): benchmark and optimize all creation paths, which are a mess now
    @GwtCompatible(serializable = true, emulated = true)
    @SuppressWarnings("serial") // we're overriding default serialization
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/GraphsTest.java

        Network<Integer, String> undirectedGraph = buildUndirectedNetwork();
    
        Network<Integer, String> copy = copyOf(undirectedGraph);
        assertThat(copy).isEqualTo(undirectedGraph);
      }
    
      // Graph creation tests
    
      @Test
      public void createDirected() {
        MutableNetwork<Integer, String> directedGraph = NetworkBuilder.directed().build();
        assertThat(directedGraph.nodes()).isEmpty();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.8K bytes
    - Viewed (0)
Back to top