Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 394 for inverse (0.15 sec)

  1. android/guava/src/com/google/common/collect/AbstractBiMap.java

        }
      }
    
      /** The inverse of any other {@code AbstractBiMap} subclass. */
      static class Inverse<K extends @Nullable Object, V extends @Nullable Object>
          extends AbstractBiMap<K, V> {
        Inverse(Map<K, V> backward, AbstractBiMap<V, K> forward) {
          super(backward, forward);
        }
    
        /*
         * Serialization stores the forward bimap, the inverse of this inverse.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractBiMap.java

        }
      }
    
      /** The inverse of any other {@code AbstractBiMap} subclass. */
      static class Inverse<K extends @Nullable Object, V extends @Nullable Object>
          extends AbstractBiMap<K, V> {
        Inverse(Map<K, V> backward, AbstractBiMap<V, K> forward) {
          super(backward, forward);
        }
    
        /*
         * Serialization stores the forward bimap, the inverse of this inverse.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 14.6K bytes
    - Viewed (0)
  3. 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
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  4. 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)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. 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)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/JdkBackedImmutableBiMap.java

     */
    @ElementTypesAreNonnullByDefault
    class JdkBackedImmutableBiMap<K, V> extends RegularImmutableBiMap<K, V> {
      private JdkBackedImmutableBiMap(ImmutableMap<K, V> delegate, ImmutableBiMap<V, K> inverse) {
        super(delegate, inverse);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1K bytes
    - Viewed (0)
  7. 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 =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  8. 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)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/SynchronizedBiMapTest.java

      }
    
      public void testInverse() {
        BiMap<String, Integer> bimap = create();
        BiMap<Integer, String> inverse = bimap.inverse();
        assertSame(bimap, inverse.inverse());
        assertTrue(inverse instanceof SynchronizedBiMap);
        assertSame(mutex, ((SynchronizedBiMap<?, ?>) inverse).mutex);
      }
    
      @Override
      public void testValues() {
        BiMap<String, Integer> map = create();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        assertEquals("one", copy.inverse().get(1));
        assertSame(copy, copy.inverse().inverse());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testInverseSerialization() {
        ImmutableBiMap<String, Integer> bimap =
            ImmutableBiMap.copyOf(ImmutableMap.of(1, "one", 2, "two")).inverse();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
Back to top