Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 128 for Inverse (0.04 sec)

  1. 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);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 22:23:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/LinearTransformation.java

      public abstract double transform(double x);
    
      /**
       * Returns the inverse linear transformation. The inverse of a horizontal transformation is a
       * vertical transformation, and vice versa. The inverse of the {@link #forNaN} transformation is
       * itself. In all other cases, the inverse is a transformation such that applying both the
       * original transformation and its inverse to a value gives you the original value give-or-take
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

            .inOrder();
        // backward map ordered by country
        assertThat(bimap.inverse().keySet())
            .containsExactly(Country.CANADA, Country.CHILE, Country.SWITZERLAND)
            .inOrder();
        // backward map ordered by country (even for currency values)
        assertThat(bimap.inverse().values())
            .containsExactly(Currency.DOLLAR, Currency.PESO, Currency.FRANC)
            .inOrder();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java

        }
        ImmutableMap<V, K> backwardMap = builder.build();
        this.inverse = new RegularImmutableBiMap<V, K>(backwardMap, this);
      }
    
      RegularImmutableBiMap(ImmutableMap<K, V> delegate, ImmutableBiMap<V, K> inverse) {
        super(delegate);
        this.inverse = inverse;
      }
    
      @Override
      public ImmutableBiMap<V, K> inverse() {
        return 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)
  5. 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
      public @Nullable V get(@Nullable Object key) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. 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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  7. 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
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. 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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.1K 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();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top