- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isFunction (0.06 sec)
-
android/guava-tests/test/com/google/common/collect/InternersTest.java
} public void testAsFunction_simplistic() { String canonical = "a"; String not = new String("a"); Function<String, String> internerFunction = Interners.asFunction(Interners.<String>newStrongInterner()); assertSame(canonical, internerFunction.apply(canonical)); assertSame(canonical, internerFunction.apply(not)); } public void testNullPointerExceptions() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/InternersTest.java
} public void testAsFunction_simplistic() { String canonical = "a"; String not = new String("a"); Function<String, String> internerFunction = Interners.asFunction(Interners.<String>newStrongInterner()); assertSame(canonical, internerFunction.apply(canonical)); assertSame(canonical, internerFunction.apply(not)); } public void testNullPointerExceptions() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interners.java
} } } /** * Returns a function that delegates to the {@link Interner#intern} method of the given interner. * * @since 8.0 */ public static <E> Function<E, E> asFunction(Interner<E> interner) { return new InternerFunction<>(checkNotNull(interner)); } private static class InternerFunction<E> implements Function<E, E> { private final Interner<E> interner;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Interners.java
} } } /** * Returns a function that delegates to the {@link Interner#intern} method of the given interner. * * @since 8.0 */ public static <E> Function<E, E> asFunction(Interner<E> interner) { return new InternerFunction<>(checkNotNull(interner)); } private static class InternerFunction<E> implements Function<E, E> { private final Interner<E> interner;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 5.9K bytes - Viewed (0)