Package com.complexible.common.hppc
Class IntObjectBiMap<T>
java.lang.Object
com.complexible.common.hppc.IntObjectBiMap<T>
- All Implemented Interfaces:
com.carrotsearch.hppc.IntObjectAssociativeContainer<T>,com.carrotsearch.hppc.IntObjectMap<T>,Iterable<com.carrotsearch.hppc.cursors.IntObjectCursor<T>>
public final class IntObjectBiMap<T>
extends Object
implements com.carrotsearch.hppc.IntObjectMap<T>
Very simple BiMap implementation which simply wraps two IntObjectMaps
- Since:
- 4.1
- Version:
- 4.1
- Author:
- Michael Grove
-
Constructor Summary
ConstructorsConstructorDescriptionIntObjectBiMap(com.carrotsearch.hppc.IntObjectMap<T> theMap, com.carrotsearch.hppc.ObjectIntMap<T> theInverse) IntObjectBiMap(IntObjectBiMap<T> theMap) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(int key) booleanvoid<T1 extends com.carrotsearch.hppc.predicates.IntObjectPredicate<? super T>>
T1forEach(T1 predicate) get(int key) getOrDefault(int key, T defaultValue) inthashCode()booleanindexExists(int index) indexGet(int index) voidindexInsert(int index, int key, T value) intindexOf(int key) indexReplace(int index, T newValue) com.carrotsearch.hppc.ObjectIntMap<T> inverse()booleanisEmpty()iterator()com.carrotsearch.hppc.IntCollectionkeys()intintvoidrelease()remove(int key) intremoveAll(com.carrotsearch.hppc.IntContainer container) intintremoveAll(com.carrotsearch.hppc.predicates.IntPredicate predicate) intsize()Spliterator<com.carrotsearch.hppc.cursors.IntObjectCursor<T>> com.carrotsearch.hppc.ObjectContainer<T> values()visualizeKeyDistribution(int characters)
-
Constructor Details
-
IntObjectBiMap
public IntObjectBiMap() -
IntObjectBiMap
-
IntObjectBiMap
-
-
Method Details
-
inverse
-
clear
public void clear()- Specified by:
clearin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
equals
-
get
- Specified by:
getin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
getOrDefault
- Specified by:
getOrDefaultin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
hashCode
public int hashCode() -
indexExists
public boolean indexExists(int index) - Specified by:
indexExistsin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
indexGet
- Specified by:
indexGetin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
indexInsert
- Specified by:
indexInsertin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
indexOf
public int indexOf(int key) - Specified by:
indexOfin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
indexReplace
- Specified by:
indexReplacein interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
put
- Specified by:
putin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
putAll
- Specified by:
putAllin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
putAll
public int putAll(Iterable<? extends com.carrotsearch.hppc.cursors.IntObjectCursor<? extends T>> iterable) - Specified by:
putAllin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
release
public void release()- Specified by:
releasein interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
remove
- Specified by:
removein interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
visualizeKeyDistribution
- Specified by:
visualizeKeyDistributionin interfacecom.carrotsearch.hppc.IntObjectMap<T>
-
containsKey
public boolean containsKey(int key) - Specified by:
containsKeyin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
forEach
public <T1 extends com.carrotsearch.hppc.predicates.IntObjectPredicate<? super T>> T1 forEach(T1 predicate) - Specified by:
forEachin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
forEach
public <T1 extends com.carrotsearch.hppc.procedures.IntObjectProcedure<? super T>> T1 forEach(T1 procedure) - Specified by:
forEachin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
iterator
-
keys
public com.carrotsearch.hppc.IntCollection keys()- Specified by:
keysin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
removeAll
public int removeAll(com.carrotsearch.hppc.IntContainer container) - Specified by:
removeAllin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
removeAll
- Specified by:
removeAllin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
removeAll
public int removeAll(com.carrotsearch.hppc.predicates.IntPredicate predicate) - Specified by:
removeAllin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
size
public int size()- Specified by:
sizein interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
values
- Specified by:
valuesin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<T>
-
forEach
-
spliterator
- Specified by:
spliteratorin interfaceIterable<T>
-