Interface Int2IntBiMap

  • All Superinterfaces:
    it.unimi.dsi.fastutil.Function<java.lang.Integer,​java.lang.Integer>, java.util.function.Function<java.lang.Integer,​java.lang.Integer>, it.unimi.dsi.fastutil.ints.Int2IntFunction, it.unimi.dsi.fastutil.ints.Int2IntMap, java.util.function.IntUnaryOperator, java.util.Map<java.lang.Integer,​java.lang.Integer>
    All Known Implementing Classes:
    Int2IntBiHashMap

    public interface Int2IntBiMap
    extends it.unimi.dsi.fastutil.ints.Int2IntMap
    Simple wrapper class for two Int2IntMaps.
    See Also:
    to get the inversed map
    • 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 Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      Int2IntBiMap inverse()
      Returns the inverse of this bimap.
      int put​(int key, int value)
      Puts the key and value into the maps.
      default void putAll​(@NonNull java.util.Map<? extends java.lang.Integer,​? extends java.lang.Integer> m)
      Deprecated.
      • 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, get, remove
      • Methods inherited from interface it.unimi.dsi.fastutil.ints.Int2IntMap

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

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

        equals, forEach, hashCode, isEmpty, replaceAll
    • Method Detail

      • inverse

        Int2IntBiMap inverse()
        Returns the inverse of this bimap.
        Returns:
        the inverse of this bimap
      • put

        int put​(int key,
                int value)
        Puts the key and value into the maps.
        Specified by:
        put in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
        Parameters:
        key - key
        value - value
        Returns:
        old value if present
        Throws:
        java.lang.IllegalArgumentException - if the value already exists in the map
      • putAll

        @Deprecated
        default void putAll​(@NonNull java.util.Map<? extends java.lang.Integer,​? extends java.lang.Integer> m)
        Deprecated.
        Specified by:
        putAll in interface java.util.Map<java.lang.Integer,​java.lang.Integer>