- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 125 for Inverse (0.16 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java
Entry<V, K> reversed = reverseEntry(entry); BiMap<V, K> inv = getMap().inverse(); assertFalse( "Inverse should not contain entry " + reversed, inv.entrySet().contains(reversed)); assertFalse( "Inverse should not contain key " + reversed.getKey(), inv.containsKey(reversed.getKey())); assertFalse( "Inverse should not contain value " + reversed.getValue(),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java
@CollectionSize.Require(absent = ZERO) public void testRemoveFromInverseRemovesFromForward() { getMap().inverse().remove(v0()); expectMissing(e0()); } @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemoveFromInverseKeySetRemovesFromForward() { getMap().inverse().keySet().remove(v0()); expectMissing(e0()); } @MapFeature.Require(SUPPORTS_REMOVE)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.1K bytes - Viewed (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 @CheckForNull public V get(@CheckForNull Object key) { Object result =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 4.3K bytes - Viewed (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 */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Jun 17 14:40:53 UTC 2023 - 4.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/SingletonImmutableBiMap.java
this.singleKey = singleKey; this.singleValue = singleValue; this.inverse = null; } private SingletonImmutableBiMap(K singleKey, V singleValue, ImmutableBiMap<V, K> inverse) { this.singleKey = singleKey; this.singleValue = singleValue; this.inverse = inverse; } @Override @CheckForNull public V get(@CheckForNull Object key) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 3.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapPutTester.java
assertFalse(getMap().containsKey(k0())); assertTrue(getMap().containsKey(k1())); assertTrue(getMap().inverse().containsKey(null)); assertNull(getMap().get(k1())); assertEquals(k1(), getMap().inverse().get(null)); assertEquals(1, getMap().size()); } // nb: inverse is run through its own entire suite @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(ZERO)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/AbstractBiMapTester.java
Entry<V, K> reversed = reverseEntry(entry); BiMap<V, K> inv = getMap().inverse(); assertFalse( "Inverse should not contain entry " + reversed, inv.entrySet().contains(reversed)); assertFalse( "Inverse should not contain key " + reversed.getKey(), inv.containsKey(reversed.getKey())); assertFalse( "Inverse should not contain value " + reversed.getValue(),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.2K bytes - Viewed (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 */ @GwtCompatible(emulated = true)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.java
@CollectionSize.Require(absent = ZERO) public void testRemoveFromInverseRemovesFromForward() { getMap().inverse().remove(v0()); expectMissing(e0()); } @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemoveFromInverseKeySetRemovesFromForward() { getMap().inverse().keySet().remove(v0()); expectMissing(e0()); } @MapFeature.Require(SUPPORTS_REMOVE)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/HashBiMapTest.java
assertEquals("dollar", bimap.get("canada")); assertEquals("canada", bimap.inverse().get("dollar")); } private static final int N = 1000; public void testBashIt() throws Exception { BiMap<Integer, Integer> bimap = HashBiMap.create(N); BiMap<Integer, Integer> inverse = bimap.inverse(); for (int i = 0; i < N; i++) { assertNull(bimap.put(2 * i, 2 * i + 1)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 8.3K bytes - Viewed (0)