Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for duplicate_ (0.28 sec)

  1. guava/src/com/google/common/collect/RegularImmutableMap.java

      /**
       * Constructs a new entry array where each duplicated key from the original appears only once, at
       * its first position but with its final value. The {@code duplicates} map is modified.
       *
       * @param entries the original array of entries including duplicates
       * @param n the number of valid entries in {@code entries}
       * @param newN the expected number of entries once duplicates are removed
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/entity/FacetQueryViewTest.java

            Map<String, String> queryMap = facetQueryView.getQueryMap();
    
            // Should not duplicate existing pdf query
            assertEquals("filetype:pdf", queryMap.get("existing_pdf"));
            // Should add doc since it's not present
            assertEquals("filetype:doc", queryMap.get("DOC"));
    
            // Check no duplicate queries added to FacetInfo
            List<String> addedQueries = testFacetInfo.getAddedQueries();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableMap.java

        // If there are no duplicate keys, hashTablePlus is the final hashTable value. If there *are*
        // duplicate keys, hashTablePlus consists of 3 elements: [0] the hashTable; [1] the number of
        // entries in alternatingKeysAndValues that are still valid after rewriting to remove
        // duplicates; [2] a Builder.DuplicateKey that records the first duplicate key we encountered
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

        }
    
        @Override
        public Set<E> create(Object... elements) {
          Object[] duplicated = new Object[elements.length * 2];
          for (int i = 0; i < elements.length; i++) {
            duplicated[i] = elements[i];
            duplicated[i + elements.length] = elements[i];
          }
          return ((Multiset<E>) gen.create(duplicated)).elementSet();
        }
    
        @Override
        public E[] createArray(int length) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

        }
    
        @Override
        public Set<E> create(Object... elements) {
          Object[] duplicated = new Object[elements.length * 2];
          for (int i = 0; i < elements.length; i++) {
            duplicated[i] = elements[i];
            duplicated[i + elements.length] = elements[i];
          }
          return ((Multiset<E>) gen.create(duplicated)).elementSet();
        }
    
        @Override
        public E[] createArray(int length) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSet.java

        // TODO(cpovirk): Consider using Object[] anyway.
        E[] array = (E[]) elements.toArray();
        /*
         * For a Set, we guess that it contains no duplicates. That's just a guess for purpose of
         * sizing; if the Set uses different equality semantics, it might contain duplicates according
         * to equals(), and we will deduplicate those properly, albeit at some cost in allocations.
         */
        int expectedSize =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  7. 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;
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMap.java

          }
        }
    
        /**
         * Scans the first {@code size} elements of {@code entries} looking for duplicate keys. If
         * duplicates are found, a new correctly-sized array is returned with the same elements (up to
         * {@code size}), except containing only the last occurrence of each duplicate key. Otherwise
         * {@code null} is returned.
         */
        private static <K, V> Entry<K, V> @Nullable [] lastEntryForEachKey(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableBiMap.java

         * Associates {@code key} with {@code value} in the built bimap. Duplicate keys or values are
         * not allowed, and will cause {@link #build} to fail.
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(K key, V value) {
          super.put(key, value);
          return this;
        }
    
        /**
         * Adds the given {@code entry} to the bimap. Duplicate keys or values are not allowed, and will
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.2K bytes
    - Viewed (0)
  10. 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)
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.8K bytes
    - Viewed (0)
Back to top