Class BidiHashMap<T1,T2>

java.lang.Object
java.util.AbstractMap<T1,T2>
java.util.HashMap<T1,T2>
ch.njol.util.coll.BidiHashMap<T1,T2>
All Implemented Interfaces:
BidiMap<T1,T2>, Serializable, Cloneable, Map<T1,T2>

@Deprecated(forRemoval=true) public class BidiHashMap<T1,T2> extends HashMap<T1,T2> implements BidiMap<T1,T2>
Deprecated, for removal: This API element is subject to removal in a future version.
Use BiMap
See Also:
  • Constructor Details

    • BidiHashMap

      public BidiHashMap()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • BidiHashMap

      public BidiHashMap(Map<? extends T1,? extends T2> values)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getReverseView

      public BidiHashMap<T2,T1> getReverseView()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getReverseView in interface BidiMap<T1,T2>
    • getKey

      @Nullable public T1 getKey(T2 value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getKey in interface BidiMap<T1,T2>
    • getValue

      @Nullable public T2 getValue(@Nullable T1 key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getValue in interface BidiMap<T1,T2>
    • put

      @Nullable public T2 put(@Nullable T1 key, @Nullable T2 value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      put in interface Map<T1,T2>
      Overrides:
      put in class HashMap<T1,T2>
    • putAll

      public void putAll(Map<? extends T1,? extends T2> m)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      putAll in interface Map<T1,T2>
      Overrides:
      putAll in class HashMap<T1,T2>
    • remove

      @Nullable public T2 remove(@Nullable @Nullable Object key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      remove in interface Map<T1,T2>
      Overrides:
      remove in class HashMap<T1,T2>
    • clear

      public void clear()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      clear in interface Map<T1,T2>
      Overrides:
      clear in class HashMap<T1,T2>
    • containsValue

      public boolean containsValue(@Nullable @Nullable Object value)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      containsValue in interface Map<T1,T2>
      Overrides:
      containsValue in class HashMap<T1,T2>
    • entrySet

      public Set<Map.Entry<T1,T2>> entrySet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      entrySet in interface Map<T1,T2>
      Overrides:
      entrySet in class HashMap<T1,T2>
    • keySet

      public Set<T1> keySet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      keySet in interface Map<T1,T2>
      Overrides:
      keySet in class HashMap<T1,T2>
    • values

      public Set<T2> values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      values in interface Map<T1,T2>
      Overrides:
      values in class HashMap<T1,T2>
    • valueSet

      public Set<T2> valueSet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      valueSet in interface BidiMap<T1,T2>
    • clone

      public BidiHashMap<T1,T2> clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class HashMap<T1,T2>