Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for UnmodifiableBiMap (0.13 seconds)

  1. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                          bimap.put(entry.getKey(), entry.getValue());
                        }
                        return Maps.unmodifiableBiMap(bimap);
                      }
                    })
                .named("unmodifiableBiMap[HashBiMap]")
                .withFeatures(
                    CollectionSize.ANY,
                    MapFeature.ALLOWS_NULL_VALUES,
                    MapFeature.ALLOWS_NULL_KEYS,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 32.4K bytes
    - Click Count (0)
  2. android/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>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  3. 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>
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  4. 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. */
        assertThat(unmod.inverse()).isSameInstanceAs(unmod.inverse());
        assertThat(unmod.inverse().inverse()).isSameInstanceAs(unmod);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
Back to Top