- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 102 for ImmutableEntry (0.15 seconds)
-
guava/src/com/google/common/collect/RegularImmutableMultiset.java
int bucket = Hashing.smear(hash) & mask; ImmutableEntry<E> bucketHead = hashTable[bucket]; ImmutableEntry<E> newEntry; if (bucketHead == null) { boolean canReuseEntry = entry instanceof ImmutableEntry && !(entry instanceof NonTerminalEntry); newEntry = canReuseEntry ? (ImmutableEntry<E>) entry : new ImmutableEntry<E>(element, count); } else {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 6.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/HashBiMapTest.java
.containsExactly(immutableEntry("foo", 1), immutableEntry("quux", 3)) .inOrder(); } public void testInsertionOrderAfterRemoveLast() { BiMap<String, Integer> map = HashBiMap.create(); map.put("foo", 1); map.put("bar", 2); map.put("quux", 3); map.remove("quux"); assertThat(map.entrySet()) .containsExactly(immutableEntry("foo", 1), immutableEntry("bar", 2))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/HashBiMapTest.java
.containsExactly(immutableEntry("foo", 1), immutableEntry("quux", 3)) .inOrder(); } public void testInsertionOrderAfterRemoveLast() { BiMap<String, Integer> map = HashBiMap.create(); map.put("foo", 1); map.put("bar", 2); map.put("quux", 3); map.remove("quux"); assertThat(map.entrySet()) .containsExactly(immutableEntry("foo", 1), immutableEntry("bar", 2))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ClassToInstanceMapTesting.java
@Override public SampleElements<Entry<Class<?>, Impl>> samples() { return new SampleElements<>( immutableEntry(One.class, new Impl(1)), immutableEntry(Two.class, new Impl(2)), immutableEntry(Three.class, new Impl(3)), immutableEntry(Four.class, new Impl(4)), immutableEntry(Five.class, new Impl(5))); } @Override @SuppressWarnings("unchecked")Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 20:00:15 GMT 2026 - 2.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java
new Builder<String, Integer>().put(immutableEntry("one", 1)).build(); assertEquals(asList(1), multimap.get("one")); } public void testBuilder_withImmutableEntryAndNullContents() { Builder<String, Integer> builder = new Builder<>(); assertThrows( NullPointerException.class, () -> builder.put(immutableEntry("one", (Integer) null)));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 6.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/TreeBasedTableTest.java
assertTrue(entrySet.contains(immutableEntry(10, 'X'))); assertTrue(entrySet.contains(immutableEntry(20, 'X'))); assertFalse(entrySet.contains(immutableEntry(15, 'X'))); entrySet = row.tailMap(15).entrySet(); assertFalse(entrySet.contains(immutableEntry(10, 'X'))); assertTrue(entrySet.contains(immutableEntry(20, 'X'))); assertFalse(entrySet.contains(immutableEntry(15, 'X'))); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 15.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java
Maps.<@Nullable String, Integer>immutableEntry(null, 7), Maps.<@Nullable String, Integer>immutableEntry(null, 3), Maps.<@Nullable String, Integer>immutableEntry(null, 1), Maps.<String, @Nullable Integer>immutableEntry("tree", null), immutableEntry("tree", 0), immutableEntry("google", 6), immutableEntry("google", 2)) .inOrder(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java
assertThat(map.entrySet()) .containsExactly(immutableEntry("one", 1), immutableEntry("three", 3)) .inOrder(); } public void testHeadMapExclusive() { Map<String, Integer> map = ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", false); assertThat(map.entrySet()).containsExactly(immutableEntry("one", 1)); } public void testTailMapInclusive() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 29.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/EnumHashBiMapTest.java
@Override public SampleElements<Entry<Country, String>> samples() { return new SampleElements<>( immutableEntry(Country.CANADA, "DOLLAR"), immutableEntry(Country.CHILE, "PESO"), immutableEntry(Country.UK, "POUND"), immutableEntry(Country.JAPAN, "YEN"), immutableEntry(Country.SWITZERLAND, "FRANC")); } @SuppressWarnings("unchecked") @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 8.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 28 19:11:14 GMT 2025 - 4.5K bytes - Click Count (0)