Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 230 for creation (0.24 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

      }
    
      @MapFeature.Require(value = ALLOWS_NULL_KEYS, absent = REJECTS_DUPLICATES_AT_CREATION)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testCreateWithDuplicates_nullDuplicatesNotRejected() {
        expectFirstRemoved(getEntriesMultipleNullKeys());
      }
    
      @MapFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION)
      @CollectionSize.Require(absent = {ZERO, ONE})
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

      }
    
      @MapFeature.Require(value = ALLOWS_NULL_KEYS, absent = REJECTS_DUPLICATES_AT_CREATION)
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testCreateWithDuplicates_nullDuplicatesNotRejected() {
        expectFirstRemoved(getEntriesMultipleNullKeys());
      }
    
      @MapFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION)
      @CollectionSize.Require(absent = {ZERO, ONE})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompoundOrdering.java

      final Comparator<? super T>[] comparators;
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Comparator<? super T> primary, Comparator<? super T> secondary) {
        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompoundOrdering.java

      final Comparator<? super T>[] comparators;
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Comparator<? super T> primary, Comparator<? super T> secondary) {
        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SynchronizedBiMapTest.java

                    MapFeature.ALLOWS_NULL_VALUES,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES,
                    MapFeature.GENERAL_PURPOSE,
                    MapFeature.REJECTS_DUPLICATES_AT_CREATION)
                .createTestSuite());
        suite.addTest(
            BiMapTestSuiteBuilder.using(new SynchronizedHashBiMapGenerator())
                .named("synchronizedBiMap[HashBiMap]")
                .withFeatures(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionCreationTester.java

    import com.google.common.collect.testing.features.CollectionSize;
    import java.lang.reflect.Method;
    import org.junit.Ignore;
    
    /**
     * A generic JUnit test which tests creation (typically through a constructor or static factory
     * method) of a collection. Can't be invoked directly; please see {@link
     * com.google.common.collect.testing.CollectionTestSuiteBuilder}.
     *
     * @author Chris Povirk
     */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableSet.java

      // GWT compiler to infer the elements of the lists that needs to be
      // serialized.
      //
      // Although this reference is non-final, it doesn't change after set creation.
      E element;
    
      SingletonImmutableSet(E element) {
        this.element = checkNotNull(element);
      }
    
      @Override
      public int size() {
        return 1;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

                    CollectionSize.ANY,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
        return suite;
      }
    
      // Creation tests
    
      public void testEmptyBuilder() {
        ImmutableSortedMap<String, Integer> map =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java

       * {@link IllegalArgumentException} when presented with duplicate keys instead of discarding all
       * but one.
       */
      REJECTS_DUPLICATES_AT_CREATION,
    
      GENERAL_PURPOSE(SUPPORTS_PUT, SUPPORTS_REMOVE);
    
      private final Set<Feature<? super Map>> implied;
    
      MapFeature(Feature<? super Map>... implied) {
        this.implied = Helpers.copyToSet(implied);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                .withFeatures(
                    CollectionSize.ONE,
                    CollectionSize.SEVERAL,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
Back to top