- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for dup3 (0.18 sec)
-
android/guava/src/com/google/common/collect/ImmutableMap.java
Set<Object> seenKeys = new HashSet<>(); BitSet dups = new BitSet(); // slots that are overridden by a later duplicate key for (int i = size - 1; i >= 0; i--) { Object key = requireNonNull(localAlternatingKeysAndValues[2 * i]); if (!seenKeys.add(key)) { dups.set(i); } } if (dups.isEmpty()) { return localAlternatingKeysAndValues; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 41.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
try { ImmutableBiMap.copyOf(map); fail(); } catch (IllegalArgumentException expected) { assertThat(expected.getMessage()).containsMatch("1|2"); // We don't specify which of the two dups should be reported. } } // TODO(b/172823566): Use mainline testToImmutableBiMap once CollectorTester is usable to java7. public void testToImmutableBiMap_java7_combine() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 21.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SortedListsTest.java
@GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class SortedListsTest extends TestCase { private static final ImmutableList<Integer> LIST_WITH_DUPS = ImmutableList.of(1, 1, 2, 4, 4, 4, 8); private static final ImmutableList<Integer> LIST_WITHOUT_DUPS = ImmutableList.of(1, 2, 4, 8); void assertModelAgrees( List<Integer> list, Integer key, int answer,
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 44.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
try { ImmutableBiMap.copyOf(map); fail(); } catch (IllegalArgumentException expected) { assertThat(expected.getMessage()).containsMatch("1|2"); // We don't specify which of the two dups should be reported. } } public void testToImmutableBiMap() { Collector<Entry<String, Integer>, ?, ImmutableBiMap<String, Integer>> collector =
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 22.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SortedListsTest.java
@GwtCompatible(emulated = true) @ElementTypesAreNonnullByDefault public class SortedListsTest extends TestCase { private static final ImmutableList<Integer> LIST_WITH_DUPS = ImmutableList.of(1, 1, 2, 4, 4, 4, 8); private static final ImmutableList<Integer> LIST_WITHOUT_DUPS = ImmutableList.of(1, 2, 4, 8); void assertModelAgrees( List<Integer> list, Integer key, int answer,
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 4.1K bytes - Viewed (0)