- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for RegularImmutableBiMap (0.16 sec)
-
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java
import java.util.HashMap; /** * GWT emulation of {@link RegularImmutableBiMap}. * * @author Jared Levy * @author Hayward Chan */ @SuppressWarnings("serial") final class RegularImmutableBiMap<K, V> extends ImmutableBiMap<K, V> { static final RegularImmutableBiMap<Object, Object> EMPTY = new RegularImmutableBiMap<Object, Object>(); private final ImmutableBiMap<V, K> inverse;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 14:59:07 UTC 2025 - 1.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
*/ @GwtCompatible @SuppressWarnings("serial") // uses writeReplace(), not default serialization final class RegularImmutableBiMap<K, V> extends ImmutableBiMap<K, V> { @SuppressWarnings("unchecked") // TODO(cpovirk): Consider storing Entry<?, ?>[] instead. static final RegularImmutableBiMap<Object, Object> EMPTY = new RegularImmutableBiMap<>( null, null, (Entry<Object, Object>[]) ImmutableMap.EMPTY_ENTRY_ARRAY, 0, 0);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 11.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableBiMap.java
* * @author Louis Wasserman */ @GwtCompatible @SuppressWarnings("serial") // uses writeReplace(), not default serialization final class RegularImmutableBiMap<K, V> extends ImmutableBiMap<K, V> { static final RegularImmutableBiMap<Object, Object> EMPTY = new RegularImmutableBiMap<>(); private final transient @Nullable Object keyHashTable; @VisibleForTesting final transient @Nullable Object[] alternatingKeysAndValues;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableBiMap.java
public static <K, V> ImmutableBiMap<K, V> of() { return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY; } /** Returns an immutable bimap containing a single entry. */ public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) { checkEntryNotNull(k1, v1); return new RegularImmutableBiMap<>(new Object[] {k1, v1}, 1); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 22.2K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java
return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY; } public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) { checkEntryNotNull(k1, v1); return new SingletonImmutableBiMap<K, V>(k1, v1); } public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2) { return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 7.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMapEntry.java
/** * Implementation of {@code Entry} for {@link ImmutableMap} that adds extra methods to traverse hash * buckets for the key and the value. This allows reuse in {@link RegularImmutableMap} and {@link * RegularImmutableBiMap}, which don't have to recopy the entries created by their {@code Builder} * implementations. * * <p>This base implementation has no key or value pointers, so instances of ImmutableMapEntry (but
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 01 21:42:29 UTC 2025 - 4.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
for (int i = 0; i < 10; i++) { builder.put(i, i); } Object[] builderArrayAfterPuts = builder.alternatingKeysAndValues; RegularImmutableBiMap<Integer, Integer> map = (RegularImmutableBiMap<Integer, Integer>) builder.build(); Object[] mapInternalArray = map.alternatingKeysAndValues; assertSame(builderArray, builderArrayAfterPuts);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.2K bytes - Viewed (0)