Class Int2IntBiHashMap

  • All Implemented Interfaces:
    Int2IntBiMap, it.unimi.dsi.fastutil.Function<java.lang.Integer,​java.lang.Integer>, it.unimi.dsi.fastutil.ints.Int2IntFunction, it.unimi.dsi.fastutil.ints.Int2IntMap, java.util.function.Function<java.lang.Integer,​java.lang.Integer>, java.util.function.IntUnaryOperator, java.util.Map<java.lang.Integer,​java.lang.Integer>

    public class Int2IntBiHashMap
    extends java.lang.Object
    implements Int2IntBiMap
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.ints.Int2IntMap

        it.unimi.dsi.fastutil.ints.Int2IntMap.Entry, it.unimi.dsi.fastutil.ints.Int2IntMap.FastEntrySet
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(int key)  
      boolean containsValue​(int value)  
      int defaultReturnValue()  
      void defaultReturnValue​(int rv)  
      int get​(int key)  
      it.unimi.dsi.fastutil.objects.ObjectSet<it.unimi.dsi.fastutil.ints.Int2IntMap.Entry> int2IntEntrySet()  
      Int2IntBiMap inverse()
      Returns the inverse of this bimap.
      boolean isEmpty()  
      @NonNull it.unimi.dsi.fastutil.ints.IntSet keySet()  
      int put​(int key, int value)
      Puts the key and value into the maps.
      boolean remove​(int key, int value)  
      int size()  
      @NonNull it.unimi.dsi.fastutil.ints.IntSet values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface it.unimi.dsi.fastutil.Function

        apply
      • Methods inherited from interface java.util.function.Function

        andThen, compose
      • Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2IntFunction

        applyAsInt, remove
      • Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2IntMap

        compute, compute, computeIfAbsent, computeIfAbsent, computeIfAbsentNullable, computeIfAbsentPartial, computeIfPresent, computeIfPresent, containsKey, containsValue, entrySet, get, getOrDefault, getOrDefault, merge, merge, put, putIfAbsent, putIfAbsent, remove, remove, replace, replace, replace, replace
      • Methods inherited from interface java.util.function.IntUnaryOperator

        andThen, compose
      • Methods inherited from interface java.util.Map

        equals, forEach, hashCode, replaceAll
    • Constructor Detail

      • Int2IntBiHashMap

        public Int2IntBiHashMap()
    • Method Detail

      • put

        public int put​(int key,
                       int value)
        Description copied from interface: Int2IntBiMap
        Puts the key and value into the maps.
        Specified by:
        put in interface Int2IntBiMap
        Specified by:
        put in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
        Parameters:
        key - key
        value - value
        Returns:
        old value if present
      • remove

        public boolean remove​(int key,
                              int value)
        Specified by:
        remove in interface it.unimi.dsi.fastutil.ints.Int2IntMap
      • get

        public int get​(int key)
        Specified by:
        get in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
      • clear

        public void clear()
        Specified by:
        clear in interface it.unimi.dsi.fastutil.Function<java.lang.Integer,​java.lang.Integer>
        Specified by:
        clear in interface it.unimi.dsi.fastutil.ints.Int2IntMap
        Specified by:
        clear in interface java.util.Map<java.lang.Integer,​java.lang.Integer>
      • size

        public int size()
        Specified by:
        size in interface it.unimi.dsi.fastutil.Function<java.lang.Integer,​java.lang.Integer>
        Specified by:
        size in interface it.unimi.dsi.fastutil.ints.Int2IntMap
        Specified by:
        size in interface java.util.Map<java.lang.Integer,​java.lang.Integer>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<java.lang.Integer,​java.lang.Integer>
      • defaultReturnValue

        public void defaultReturnValue​(int rv)
        Specified by:
        defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
        Specified by:
        defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2IntMap
      • defaultReturnValue

        public int defaultReturnValue()
        Specified by:
        defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
        Specified by:
        defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2IntMap
      • int2IntEntrySet

        public it.unimi.dsi.fastutil.objects.ObjectSet<it.unimi.dsi.fastutil.ints.Int2IntMap.Entry> int2IntEntrySet()
        Specified by:
        int2IntEntrySet in interface it.unimi.dsi.fastutil.ints.Int2IntMap
      • keySet

        public @NonNull it.unimi.dsi.fastutil.ints.IntSet keySet()
        Specified by:
        keySet in interface it.unimi.dsi.fastutil.ints.Int2IntMap
        Specified by:
        keySet in interface java.util.Map<java.lang.Integer,​java.lang.Integer>
      • values

        public @NonNull it.unimi.dsi.fastutil.ints.IntSet values()
        Specified by:
        values in interface it.unimi.dsi.fastutil.ints.Int2IntMap
        Specified by:
        values in interface java.util.Map<java.lang.Integer,​java.lang.Integer>
      • containsKey

        public boolean containsKey​(int key)
        Specified by:
        containsKey in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
        Specified by:
        containsKey in interface it.unimi.dsi.fastutil.ints.Int2IntMap
      • containsValue

        public boolean containsValue​(int value)
        Specified by:
        containsValue in interface it.unimi.dsi.fastutil.ints.Int2IntMap