- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for newWeakInterner (0.14 sec)
-
android/guava-tests/test/com/google/common/collect/InternersTest.java
String canonical = "a"; String not = new String("a"); Interner<String> pool = Interners.newWeakInterner(); assertSame(canonical, pool.intern(canonical)); assertSame(canonical, pool.intern(not)); } public void testWeak_null() { Interner<String> pool = Interners.newWeakInterner(); assertThrows(NullPointerException.class, () -> pool.intern(null)); } public void testWeak_builder() {
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
String canonical = "a"; String not = new String("a"); Interner<String> pool = Interners.newWeakInterner(); assertSame(canonical, pool.intern(canonical)); assertSame(canonical, pool.intern(not)); } public void testWeak_null() { Interner<String> pool = Interners.newWeakInterner(); assertThrows(NullPointerException.class, () -> pool.intern(null)); } public void testWeak_builder() {
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/BenchmarkHelpers.java
} public enum InternerImpl implements InternerImplEnum { WeakInternerImpl { @Override public <E> Interner<E> create(Collection<E> contents) { Interner<E> interner = Interners.newWeakInterner(); for (E e : contents) { E unused = interner.intern(e); } return interner; } }, StrongInternerImpl { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
} public enum InternerImpl implements InternerImplEnum { WeakInternerImpl { @Override public <E> Interner<E> create(Collection<E> contents) { Interner<E> interner = Interners.newWeakInterner(); for (E e : contents) { E unused = interner.intern(e); } return interner; } }, StrongInternerImpl { @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 12.4K bytes - Viewed (0)