- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,187 for interner (0.18 sec)
-
android/guava/src/com/google/common/collect/Interner.java
/** * Provides similar behavior to {@link String#intern} for any immutable type. Common implementations * are available from the {@link Interners} class. * * <p>Note that {@code String.intern()} has some well-known performance limitations, and should * generally be avoided. Prefer {@link Interners#newWeakInterner} or another {@code Interner} * implementation even for {@code String} interning. *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 13 14:30:51 GMT 2023 - 2K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interner.java
/** * Provides similar behavior to {@link String#intern} for any immutable type. Common implementations * are available from the {@link Interners} class. * * <p>Note that {@code String.intern()} has some well-known performance limitations, and should * generally be avoided. Prefer {@link Interners#newWeakInterner} or another {@code Interner} * implementation even for {@code String} interning. *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Mar 13 14:30:51 GMT 2023 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/InternersTest.java
assertEquals(Strength.WEAK, internerImpl.map.keyStrength()); assertEquals(concurrencyLevel, internerImpl.map.concurrencyLevel); } public void testWeak_afterGC() throws InterruptedException { Integer canonical = new Integer(5); Integer not = new Integer(5); Interner<Integer> pool = Interners.newWeakInterner(); assertSame(canonical, pool.intern(canonical));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 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; public InternerFunction(Interner<E> interner) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Mar 13 14:30:51 GMT 2023 - 5.9K bytes - Viewed (1) -
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; public InternerFunction(Interner<E> interner) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Mar 13 14:30:51 GMT 2023 - 5.9K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java
import com.google.caliper.Benchmark; /** * Benchmarking interners. * * @author Dimitris Andreou */ public class InternersBenchmark { @Benchmark int weakInterner(int reps) { Interner<String> interner = Interners.newWeakInterner(); for (int i = 0; i < reps; i++) { String unused = interner.intern(Double.toHexString(Math.random())); } return reps; } @Benchmark
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Mar 04 04:06:35 GMT 2022 - 1.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/InternersTest.java
assertEquals(Strength.WEAK, internerImpl.map.keyStrength()); assertEquals(concurrencyLevel, internerImpl.map.concurrencyLevel); } public void testWeak_afterGC() throws InterruptedException { Integer canonical = new Integer(5); Integer not = new Integer(5); Interner<Integer> pool = Interners.newWeakInterner(); assertSame(canonical, pool.intern(canonical));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java
import com.google.caliper.Benchmark; /** * Benchmarking interners. * * @author Dimitris Andreou */ public class InternersBenchmark { @Benchmark int weakInterner(int reps) { Interner<String> interner = Interners.newWeakInterner(); for (int i = 0; i < reps; i++) { String unused = interner.intern(Double.toHexString(Math.random())); } return reps; } @Benchmark
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Mar 04 04:06:35 GMT 2022 - 1.4K bytes - Viewed (0) -
.idea/dictionaries/bashor.xml
<component name="ProjectDictionaryState"> <dictionary name="bashor"> <words> <w>binaryen</w> <w>ctor</w> <w>inlining</w> <w>interner</w> <w>intrinsicify</w> <w>kclass</w> <w>lookups</w> <w>minification</w> <w>minifier</w> <w>minify</w> <w>unescape</w> </words> </dictionary>
XML - Registered: Fri May 03 08:18:13 GMT 2024 - Last Modified: Wed Nov 09 12:44:39 GMT 2022 - 365 bytes - Viewed (0) -
android/guava/src/com/google/common/collect/package-info.java
* an example, see {@link ForwardingCollection}. * * <h2>Other</h2> * * <ul> * <li>{@link EvictingQueue} * <li>{@link Interner}, {@link Interners} * <li>{@link MapMaker} * <li>{@link MinMaxPriorityQueue} * <li>{@link PeekingIterator} * </ul> */ @CheckReturnValue @ParametersAreNonnullByDefault package com.google.common.collect;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Jul 06 16:29:45 GMT 2023 - 5K bytes - Viewed (0)