- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 622 for intern (0.04 seconds)
-
android/guava/src/com/google/common/collect/Interner.java
@DoNotMock("Use Interners.new*Interner") @J2ktIncompatible @GwtIncompatible public interface Interner<E> { /** * Chooses and returns the representative instance for any of a collection of instances that are * equal to each other. If two {@linkplain Object#equals equal} inputs are given to this method, * both calls will return the same instance. That is, {@code intern(a).equals(a)} always holds,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2K bytes - Click Count (0) -
guava/src/com/google/common/collect/Interner.java
@DoNotMock("Use Interners.new*Interner") @J2ktIncompatible @GwtIncompatible public interface Interner<E> { /** * Chooses and returns the representative instance for any of a collection of instances that are * equal to each other. If two {@linkplain Object#equals equal} inputs are given to this method, * both calls will return the same instance. That is, {@code intern(a).equals(a)} always holds,Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2K bytes - Click Count (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 final class InternerFunction<E> implements Function<E, E> { private final Interner<E> interner; InternerFunction(Interner<E> interner) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 6K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java
@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; } @CanIgnoreReturnValue @Benchmark int strongInterner(int reps) { Interner<String> interner = Interners.newStrongInterner(); for (int i = 0; i < reps; i++) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 11 19:03:19 GMT 2025 - 1.6K bytes - Click Count (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 final class InternerFunction<E> implements Function<E, E> { private final Interner<E> interner; InternerFunction(Interner<E> interner) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/InternersTest.java
assertThat(pool.intern(canonical)).isSameInstanceAs(canonical); assertThat(pool.intern(not)).isSameInstanceAs(canonical); } public void testWeak_null() { Interner<String> pool = Interners.newWeakInterner(); assertThrows(NullPointerException.class, () -> pool.intern(null)); } public void testWeak_builder() { int concurrencyLevel = 42; Interner<Object> interner =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 4.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/InternersTest.java
assertThat(pool.intern(canonical)).isSameInstanceAs(canonical); assertThat(pool.intern(not)).isSameInstanceAs(canonical); } public void testWeak_null() { Interner<String> pool = Interners.newWeakInterner(); assertThrows(NullPointerException.class, () -> pool.intern(null)); } public void testWeak_builder() { int concurrencyLevel = 42; Interner<Object> interner =
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 4.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
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 public <E> Interner<E> create(Collection<E> contents) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 12.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
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 public <E> Interner<E> create(Collection<E> contents) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 12.5K bytes - Click Count (0) -
CHANGELOG/CHANGELOG-1.22.md
- github.com/go-kit/log: [v0.1.0](https://github.com/go-kit/log/tree/v0.1.0) - github.com/gofrs/uuid: [v4.0.0+incompatible](https://github.com/gofrs/uuid/tree/v4.0.0) - github.com/josharian/intern: [v1.0.0](https://github.com/josharian/intern/tree/v1.0.0) - github.com/jpillora/backoff: [v1.0.0](https://github.com/jpillora/backoff/tree/v1.0.0) - github.com/nxadm/tail: [v1.4.4](https://github.com/nxadm/tail/tree/v1.4.4)
Created: Fri Apr 03 09:05:14 GMT 2026 - Last Modified: Tue Dec 13 12:43:45 GMT 2022 - 454.1K bytes - Click Count (0)