Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                      }
                    })
                .named("TreeMultimap.asMap")
                .withFeatures(
                    MapFeature.SUPPORTS_REMOVE,
                    MapFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
                    CollectionFeature.KNOWN_ORDER,
                    CollectionSize.ANY)
                .createTestSuite());
        suite.addTest(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * its greatest element, as determined by the queue's specified comparator. If no comparator is
     * given at creation time, the natural order of elements is used. If no maximum size is given at
     * creation time, the queue is unbounded.
     *
     * <p>Usage example:
     *
     * <pre>{@code
     * MinMaxPriorityQueue<User> users = MinMaxPriorityQueue.orderedBy(userComparator)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

       * test method needs to create multiple containers while retaining the ability to use {@link
       * #expectContents(Object[]) expectContents(E...)} and other convenience methods. The creation of
       * multiple containers in a single method is discouraged in most cases, but it is vital to the
       * iterator tests.
       *
       * @return the new container instance
       * @param newValue the new container instance
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

        return MoreObjects.firstNonNull(valueStrength, Strength.STRONG);
      }
    
      /**
       * Specifies that each entry should be automatically removed from the cache once a fixed duration
       * has elapsed after the entry's creation, or the most recent replacement of its value.
       *
       * <p>When {@code duration} is zero, this method hands off to {@link #maximumSize(long)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java

        }
    
        inverseFeatures.add(NoRecurse.INVERSE);
        inverseFeatures.remove(CollectionFeature.KNOWN_ORDER);
        inverseFeatures.add(MapFeature.REJECTS_DUPLICATES_AT_CREATION);
    
        return inverseFeatures;
      }
    
      // TODO(lowasser): can we eliminate the duplication from MapTestSuiteBuilder here?
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/ClassPathTest.java

                      .scanResources())
              .hasSize(1);
        } finally {
          jarFile.delete();
        }
      }
    
      @AndroidIncompatible // Path (for symlink creation)
    
      public void testScanDirectory_symlinkCycle() throws IOException {
        if (isWindows()) {
          return; // TODO: b/136041958 - Can we detect cycles under Windows?
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java

                .named("ForwardingSortedMap[ImmutableSortedMap] with standard " + "implementations")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.REJECTS_DUPLICATES_AT_CREATION,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES)
                .createTestSuite());
    
        return suite;
      }
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      public void testForwarding() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ObjectArrays.java

        for (int i = 0; i < length; i++) {
          checkElementNotNull(array[i], i);
        }
        return array;
      }
    
      // We do this instead of Preconditions.checkNotNull to save boxing and array
      // creation cost.
      @CanIgnoreReturnValue
      static Object checkElementNotNull(@CheckForNull Object element, int index) {
        if (element == null) {
          throw new NullPointerException("at index " + index);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

                .named("ImmutableSortedSet.asList")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
        suite.addTest(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
Back to top