public class Int2IntBiMap extends Object implements it.unimi.dsi.fastutil.ints.Int2IntMap
Int2IntMap
s.to get the inversed map
Constructor and Description |
---|
Int2IntBiMap() |
Modifier and Type | Method and 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() |
boolean |
isEmpty() |
@NotNull it.unimi.dsi.fastutil.ints.IntSet |
keySet() |
int |
put(int key,
int value)
Puts the key and value into the maps.
|
void |
putAll(@NotNull Map<? extends Integer,? extends Integer> m)
Deprecated.
|
boolean |
remove(int key,
int value) |
int |
size() |
@NotNull it.unimi.dsi.fastutil.ints.IntSet |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
andThen, compose, identity
equals, forEach, hashCode, replaceAll
public Int2IntBiMap inverse()
public int put(int key, int value)
put
in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
key
- keyvalue
- valueIllegalArgumentException
- if the value already exists in the mappublic boolean remove(int key, int value)
remove
in interface it.unimi.dsi.fastutil.ints.Int2IntMap
public int get(int key)
get
in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
public void clear()
public int size()
@Deprecated public void putAll(@NotNull @NotNull Map<? extends Integer,? extends Integer> m)
public void defaultReturnValue(int rv)
defaultReturnValue
in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
defaultReturnValue
in interface it.unimi.dsi.fastutil.ints.Int2IntMap
public int defaultReturnValue()
defaultReturnValue
in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
defaultReturnValue
in interface it.unimi.dsi.fastutil.ints.Int2IntMap
public it.unimi.dsi.fastutil.objects.ObjectSet<it.unimi.dsi.fastutil.ints.Int2IntMap.Entry> int2IntEntrySet()
int2IntEntrySet
in interface it.unimi.dsi.fastutil.ints.Int2IntMap
@NotNull public @NotNull it.unimi.dsi.fastutil.ints.IntSet keySet()
@NotNull public @NotNull it.unimi.dsi.fastutil.ints.IntSet values()
public boolean containsKey(int key)
containsKey
in interface it.unimi.dsi.fastutil.ints.Int2IntFunction
containsKey
in interface it.unimi.dsi.fastutil.ints.Int2IntMap
public boolean containsValue(int value)
containsValue
in interface it.unimi.dsi.fastutil.ints.Int2IntMap
Copyright © 2016–2021. All rights reserved.