- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 170 for ImmutableMap (0.38 sec)
-
guava-tests/test/com/google/common/base/FunctionsTest.java
@J2ktIncompatible @GwtIncompatible // SerializableTester public void testForMapWithDefaultSerializable() { checkCanReserialize(Functions.forMap(ImmutableMap.of(1, 2), 3)); } public void testForMapWithDefault_null() { ImmutableMap<String, Integer> map = ImmutableMap.of("One", 1); Function<String, @Nullable Integer> function = Functions.forMap(map, null); assertEquals((Integer) 1, function.apply("One"));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 16K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java
}; // used under GWT, etc., since the override of this method does not exist there ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> exceptions() { return ImmutableMap.of(); } } private static final ImmutableMap<Class<? extends Throwable>, Predicate<Throwable>> INSTANCE_OF = ImmutableMap.<Class<? extends Throwable>, Predicate<Throwable>>builder()Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EmptyImmutableTableTest.java
assertEquals(ImmutableSet.of(), INSTANCE.cellSet()); } public void testColumn() { assertEquals(ImmutableMap.of(), INSTANCE.column(1)); } public void testColumnKeySet() { assertEquals(ImmutableSet.of(), INSTANCE.columnKeySet()); } public void testColumnMap() { assertEquals(ImmutableMap.of(), INSTANCE.columnMap()); } public void testContains() { assertFalse(INSTANCE.contains('a', 1));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractTableTest.java
assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), row); table.remove("foo", 3); assertEquals(ImmutableMap.of(1, 'a'), row); table.remove("foo", 1); assertEquals(ImmutableMap.of(), row); table.put("foo", 2, cellValue('b')); assertEquals(ImmutableMap.of(2, 'b'), row); row.clear(); assertEquals(ImmutableMap.of(), row); table.put("foo", 5, cellValue('x'));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
Map<String, String> map = transformValues(ImmutableMap.<String, Integer>of(), Functions.toStringFunction()); assertMapsEqual(new HashMap<>(), map); } public void testTransformSingletonMapEquality() { Map<String, String> map = transformValues(ImmutableMap.of("a", 1), Functions.toStringFunction()); Map<String, String> expected = ImmutableMap.of("a", "1"); assertMapsEqual(expected, map);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 12.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractTableTest.java
assertEquals(ImmutableMap.of(1, 'a', 3, 'c'), row); table.remove("foo", 3); assertEquals(ImmutableMap.of(1, 'a'), row); table.remove("foo", 1); assertEquals(ImmutableMap.of(), row); table.put("foo", 2, cellValue('b')); assertEquals(ImmutableMap.of(2, 'b'), row); row.clear(); assertEquals(ImmutableMap.of(), row); table.put("foo", 5, cellValue('x'));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/RegularImmutableMapWithUnhashableValuesMapInterfaceTest.java
import org.jspecify.annotations.NullUnmarked; @GwtIncompatible // GWT's ImmutableMap emulation is backed by java.util.HashMap. @NullUnmarked public class RegularImmutableMapWithUnhashableValuesMapInterfaceTest extends AbstractImmutableMapMapInterfaceTest<Integer, UnhashableObject> { @Override protected Map<Integer, UnhashableObject> makeEmptyMap() { return ImmutableMap.of(); } @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableTable.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 21:07:18 UTC 2025 - 17.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/CollectCollectors.java
ImmutableMap.Builder::combine, ImmutableMap.Builder::buildOrThrow); } static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap( Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction) { checkNotNull(keyFunction); checkNotNull(valueFunction); checkNotNull(mergeFunction);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 16.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java
} @Override Map<Integer, Double> multipleQuantiles( Collection<Integer> indexes, int scale, double[] dataset) { Arrays.sort(dataset); ImmutableMap.Builder<Integer, Double> builder = ImmutableMap.builder(); for (int index : indexes) { builder.put(index, singleQuantileFromSorted(index, scale, dataset)); } return builder.buildOrThrow(); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.1K bytes - Viewed (0)