- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testForMapWithDefault_null (0.19 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"));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 16K 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"));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 16K bytes - Viewed (0)