Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 419 for duplicates (0.23 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

          default:
            return new RegularImmutableSet<E>(delegate);
        }
      }
    
      private static <E> ImmutableSet<E> create(E... elements) {
        // Create the set first, to remove duplicates if necessary.
        Set<E> set = Sets.newLinkedHashSet();
        Collections.addAll(set, elements);
        for (E element : set) {
          checkNotNull(element);
        }
    
        switch (set.size()) {
          case 0:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableMap.java

        @Nullable Object[] alternatingKeysAndValues;
        int size;
        boolean entriesUsed;
        /**
         * If non-null, a duplicate key we found in a previous buildKeepingLast() or buildOrThrow()
         * call. A later buildOrThrow() can simply report this duplicate immediately.
         */
        @Nullable DuplicateKey duplicateKey;
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashSet.java

       * collection in unspecified order.
       *
       * @param collection the elements that the set should contain
       * @return a new {@code CompactHashSet} containing those elements (minus duplicates)
       */
      public static <E extends @Nullable Object> CompactHashSet<E> create(
          Collection<? extends E> collection) {
        CompactHashSet<E> set = createWithExpectedSize(collection.size());
        set.addAll(collection);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

                      }
                    })
                .named("ImmutableMultiset.elementSet.asList")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.SERIALIZABLE,
                    CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
        return suite;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

     * elements.
     *
     * <p>The collections created by {@link #createCollection()} may or may not allow duplicates. If the
     * collection, such as a {@link Set}, does not support duplicates, an added key-value pair will
     * replace an existing pair with the same key and value, if such a pair is present. With collections
     * like {@link List} that allow duplicates, the collection will keep the existing key-value pairs
     * while adding a new pair.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

     * elements.
     *
     * <p>The collections created by {@link #createCollection()} may or may not allow duplicates. If the
     * collection, such as a {@link Set}, does not support duplicates, an added key-value pair will
     * replace an existing pair with the same key and value, if such a pair is present. With collections
     * like {@link List} that allow duplicates, the collection will keep the existing key-value pairs
     * while adding a new pair.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 48K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      /**
       * Returns a {@code Collector} that accumulates the input elements into a new {@code
       * ImmutableSortedSet}, ordered by the specified comparator.
       *
       * <p>If the elements contain duplicates (according to the comparator), only the first duplicate
       * in encounter order will appear in the result.
       *
       * @since 33.2.0 (available since 21.0 in guava-jre)
       */
      @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"})
    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)
  8. android/guava/src/com/google/common/collect/ArrayTable.java

       * @param columnKeys column keys that may be stored in the generated table
       * @throws NullPointerException if any of the provided keys is null
       * @throws IllegalArgumentException if {@code rowKeys} or {@code columnKeys} contains duplicates
       *     or if exactly one of {@code rowKeys} or {@code columnKeys} is empty.
       */
      public static <R, C, V> ArrayTable<R, C, V> create(
          Iterable<? extends R> rowKeys, Iterable<? extends C> columnKeys) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

       */
    
      /*
       * These generators also rely on consecutive integer inputs (not necessarily in order, but no
       * holes).
       */
    
      // SetCreationTester has some tests that pass in duplicates. Dedup them.
      private static <E extends Comparable<? super E>> SortedSet<E> nullCheckedTreeSet(E[] elements) {
        SortedSet<E> set = newTreeSet();
        for (E element : elements) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ForwardingMapTest.java

                      }
                    })
                .named("ForwardingMap[ImmutableMap] with standard implementations")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.REJECTS_DUPLICATES_AT_CREATION,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES,
                    CollectionFeature.KNOWN_ORDER)
                .createTestSuite());
    
        return suite;
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.7K bytes
    - Viewed (0)
Back to top