Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for unmodifiableBiMap (0.26 sec)

  1. 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,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 32.2K bytes
    - Viewed (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 class UnmodifiableBiMap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (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 class UnmodifiableBiMap<K extends @Nullable Object, V extends @Nullable Object>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
Back to top