- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testForMapWithDefault_null (0.17 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0) -
android/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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0)