- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 346 for Duplicates (0.32 seconds)
-
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
Map<Integer, String> expected = new LinkedHashMap<>(); for (int i = 0; i < 1000; i++) { // Truncate to even key, so we have put(0, "0") then put(0, "1"). Half the entries are // duplicates. Integer key = i & ~1; String value = String.valueOf(i); builder.put(key, value); expected.put(key, value); } ImmutableMap<Integer, String> map = builder.buildKeepingLast();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 36.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 9.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
* order. The sorting algorithm used is stable, so elements that compare as equal will stay in the * order in which they appear in the input. * * <p>If your data has no duplicates, or you wish to deduplicate elements, use {@code * ImmutableSortedSet.copyOf(elements)}; if you want a {@code List} you can use its {@code * asList()} view. *Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 27.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/LinkedListMultimap.java
} /** * {@inheritDoc} * * <p>The iterator generated by the returned collection traverses the values in the order they * were added to the multimap. Because the values may have duplicates and follow the insertion * ordering, this method returns a {@link List}, instead of the {@link Collection} specified in * the {@link ListMultimap} interface. */ @Override public List<V> values() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 27K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ResponseDataTest.java
assertTrue(data.getChildUrlSet().contains(child2)); } public void test_childUrlSetNoDuplicates() { // Test that child URL set does not allow duplicates ResponseData data = new ResponseData(); RequestData child = new RequestData(); child.setMethod(Method.GET); child.setUrl("https://example.com/page1");
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Nov 13 13:29:22 GMT 2025 - 14.3K bytes - Click Count (0) -
fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlQueueServiceTest.java
urlQueue2.setMethod("GET"); urlQueue2.setSessionId(sessionId); urlQueue2.setUrl("http://www.example.com/page1"); // Duplicate urlQueueList.add(urlQueue2); urlQueueService.offerAll(sessionId, urlQueueList); // Should only store one item (duplicates are filtered) int count = 0; while (true) { final OpenSearchUrlQueue polled = urlQueueService.poll(sessionId);
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Nov 20 08:40:57 GMT 2025 - 14.3K bytes - Click Count (0) -
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) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 26.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java
} } // TODO: test adding element of wrong type /** * Returns {@link Method} instances for the {@code setCount()} tests that assume multisets support * duplicates so that the test of {@code Multisets.forSet()} can suppress them. */ @J2ktIncompatible @GwtIncompatible // reflection public static List<Method> getSetCountDuplicateInitializingMethods() { return asList(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Sets.java
* * @param anElement one of the elements the set should contain * @param otherElements the rest of the elements the set should contain * @return an immutable set containing those elements, minus duplicates */ public static <E extends Enum<E>> ImmutableSet<E> immutableEnumSet( E anElement, E... otherElements) { return ImmutableEnumSet.asImmutable(EnumSet.of(anElement, otherElements)); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 81.6K bytes - Click Count (0) -
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);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 24.7K bytes - Click Count (0)