Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UnmodifiableBiMap (0.06 sec)

  1. guava/src/com/google/common/collect/Maps.java

       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          BiMap<K, V> unmodifiableBiMap(BiMap<? extends K, ? extends V> bimap) {
        return new UnmodifiableBiMap<>(bimap, null);
      }
    
      /**
       * @see Maps#unmodifiableBiMap(BiMap)
       */
      private static final class UnmodifiableBiMap<
              K extends @Nullable Object, V extends @Nullable Object>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 163.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MapsTest.java

        BiMap<Integer, String> mod = HashBiMap.create();
        mod.put(1, "one");
        mod.put(2, "two");
        mod.put(3, "three");
    
        BiMap<Number, String> unmod = Maps.<Number, String>unmodifiableBiMap(mod);
    
        /* No aliasing on inverse operations. */
        assertSame(unmod.inverse(), unmod.inverse());
        assertSame(unmod, unmod.inverse().inverse());
    
        /* Unmodifiable is a view. */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/MapsTest.java

        BiMap<Integer, String> mod = HashBiMap.create();
        mod.put(1, "one");
        mod.put(2, "two");
        mod.put(3, "three");
    
        BiMap<Number, String> unmod = Maps.<Number, String>unmodifiableBiMap(mod);
    
        /* No aliasing on inverse operations. */
        assertSame(unmod.inverse(), unmod.inverse());
        assertSame(unmod, unmod.inverse().inverse());
    
        /* Unmodifiable is a view. */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 65K bytes
    - Viewed (0)
Back to top