Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 150 for Inversa (0.58 sec)

  1. 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)
  2. 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)
  3. 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)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java

        if (!parentBuilder.getFeatures().contains(NoRecurse.INVERSE)) {
          derived.add(
              BiMapTestSuiteBuilder.using(
                      new InverseBiMapGenerator<K, V>(parentBuilder.getSubjectGenerator()))
                  .withFeatures(computeInverseFeatures(parentBuilder.getFeatures()))
                  .named(parentBuilder.getName() + " inverse")
                  .suppressing(parentBuilder.getSuppressedTests())
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/HashBiMap.java

        }
      }
    
      @LazyInit @RetainedWith @CheckForNull private transient BiMap<V, K> inverse;
    
      @Override
      public BiMap<V, K> inverse() {
        BiMap<V, K> result = inverse;
        return (result == null) ? inverse = new Inverse() : result;
      }
    
      private final class Inverse extends IteratorBasedAbstractMap<V, K>
          implements BiMap<V, K>, Serializable {
        BiMap<K, V> forward() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  6. 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)
  7. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

            ImmutableListMultimap.<String, Integer>of().inverse());
        assertEquals(ImmutableListMultimap.of(1, "one"), ImmutableListMultimap.of("one", 1).inverse());
        assertEquals(
            ImmutableListMultimap.of(1, "one", 2, "two"),
            ImmutableListMultimap.of("one", 1, "two", 2).inverse());
        assertEquals(
            ImmutableListMultimap.of("of", 'o', "of", 'f', "to", 't', "to", 'o').inverse(),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  8. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. 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));
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. android/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));
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top