- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 248 for inverse (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/collect/AbstractBiMap.java
} AbstractBiMap<V, K> makeInverse(Map<V, K> backward) { return new Inverse<>(backward, this); } void setInverse(AbstractBiMap<V, K> inverse) { this.inverse = inverse; } // Query Operations (optimizations) @Override public boolean containsValue(@Nullable Object value) { return inverse.containsKey(value); } // Modification Operations
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 13.5K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableBiMap.java
this.singleValue = value; this.inverse = inverse; } @Override public ImmutableBiMap<V, K> inverse() { ImmutableBiMap<V, K> result = inverse; if (result == null) { return inverse = new SingletonImmutableBiMap<V, K>(singleValue, singleKey, this); } else { return result; } } @Override public ImmutableSet<V> values() { return ImmutableSet.of(singleValue); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 22:23:20 GMT 2025 - 1.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java
@Nullable JdkBackedImmutableBiMap<V, K> inverse) { this.entries = entries; this.forwardDelegate = forwardDelegate; this.backwardDelegate = backwardDelegate; this.inverse = inverse; } @Override public int size() { return entries.size(); } @Override public ImmutableBiMap<V, K> inverse() { return inverse != null ? inverse : lazyInverse(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 4.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractBiMap.java
} AbstractBiMap<V, K> makeInverse(Map<V, K> backward) { return new Inverse<>(backward, this); } void setInverse(AbstractBiMap<V, K> inverse) { this.inverse = inverse; } // Query Operations (optimizations) @Override public boolean containsValue(@Nullable Object value) { return inverse.containsKey(value); } // Modification Operations
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 14.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java
import java.io.Serializable; import java.lang.reflect.Method; import java.util.Collections; import java.util.List; import org.junit.Ignore; /** * Tests for the {@code inverse} view of a BiMap. * * <p>This assumes that {@code bimap.inverse().inverse() == bimap}, which is not technically * required but is fulfilled by all current implementations. * * @author Louis Wasserman */ @GwtCompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableBiMap.java
this.keyOffset = 1; this.size = size; this.inverse = inverse; } @Override public int size() { return size; } @Override public ImmutableBiMap<V, K> inverse() { return inverse; } @SuppressWarnings("unchecked") @Override public @Nullable V get(@Nullable Object key) { Object result =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/BiMap.java
/** * Returns the inverse view of this bimap, which maps each of this bimap's values to its * associated key. The two bimaps are backed by the same data; any changes to one will appear in * the other. * * <p><b>Note:</b> There is no guaranteed correspondence between the iteration order of a bimap * and that of its inverse. * * @return the inverse view of this bimap */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapInverseTester.java
import java.io.Serializable; import java.lang.reflect.Method; import java.util.Collections; import java.util.List; import org.junit.Ignore; /** * Tests for the {@code inverse} view of a BiMap. * * <p>This assumes that {@code bimap.inverse().inverse() == bimap}, which is not technically * required but is fulfilled by all current implementations. * * @author Louis Wasserman */ @GwtCompatibleCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/BiMap.java
/** * Returns the inverse view of this bimap, which maps each of this bimap's values to its * associated key. The two bimaps are backed by the same data; any changes to one will appear in * the other. * * <p><b>Note:</b> There is no guaranteed correspondence between the iteration order of a bimap * and that of its inverse. * * @return the inverse view of this bimap */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
assertThat(copy.inverse().get(1)).isEqualTo("one"); assertThat(copy.inverse().inverse()).isSameInstanceAs(copy); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testInverseSerialization() { ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf(ImmutableMap.of(1, "one", 2, "two")).inverse();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0)