Package org.elasticsearch.common.collect
Class ImmutableOpenIntMap.Builder<VType>
java.lang.Object
org.elasticsearch.common.collect.ImmutableOpenIntMap.Builder<VType>
- All Implemented Interfaces:
com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>,com.carrotsearch.hppc.IntObjectMap<VType>,Iterable<com.carrotsearch.hppc.cursors.IntObjectCursor<VType>>
- Enclosing class:
- ImmutableOpenIntMap<VType>
public static class ImmutableOpenIntMap.Builder<VType>
extends Object
implements com.carrotsearch.hppc.IntObjectMap<VType>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance of thevoidclear()booleancontainsKey(int key)<T extends com.carrotsearch.hppc.procedures.IntObjectProcedure<? super VType>>
TforEach(T procedure)A put operation that can be used in the fluent pattern.fRemove(int key)Remove that can be used in the fluent pattern.get(int key)getOrDefault(int kType, VType vType)booleanindexExists(int index)indexGet(int index)voidindexInsert(int index, int key, VType value)intindexOf(int key)indexReplace(int index, VType newValue)booleanisEmpty()iterator()com.carrotsearch.hppc.IntCollectionkeys()intintPuts all the entries in the map to the builder.voidrelease()remove(int key)intremoveAll(com.carrotsearch.hppc.IntContainer container)intintremoveAll(com.carrotsearch.hppc.predicates.IntPredicate predicate)intsize()com.carrotsearch.hppc.ObjectContainer<VType>values()visualizeKeyDistribution(int characters)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.carrotsearch.hppc.IntObjectMap
equals, hashCodeMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Builder
public Builder() -
Builder
public Builder(int size) -
Builder
-
-
Method Details
-
build
Builds a new instance of the -
putAll
Puts all the entries in the map to the builder. -
fPut
A put operation that can be used in the fluent pattern. -
put
- Specified by:
putin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
get
- Specified by:
getin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
getOrDefault
- Specified by:
getOrDefaultin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
fRemove
Remove that can be used in the fluent pattern. -
remove
- Specified by:
removein interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
iterator
-
containsKey
public boolean containsKey(int key)- Specified by:
containsKeyin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
size
public int size()- Specified by:
sizein interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
clear
public void clear()- Specified by:
clearin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
putAll
- Specified by:
putAllin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
putAll
public int putAll(Iterable<? extends com.carrotsearch.hppc.cursors.IntObjectCursor<? extends VType>> iterable)- Specified by:
putAllin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
removeAll
public int removeAll(com.carrotsearch.hppc.IntContainer container)- Specified by:
removeAllin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
removeAll
public int removeAll(com.carrotsearch.hppc.predicates.IntPredicate predicate)- Specified by:
removeAllin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
forEach
public <T extends com.carrotsearch.hppc.procedures.IntObjectProcedure<? super VType>> T forEach(T procedure)- Specified by:
forEachin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
keys
public com.carrotsearch.hppc.IntCollection keys()- Specified by:
keysin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
values
- Specified by:
valuesin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
removeAll
- Specified by:
removeAllin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
forEach
public <T extends com.carrotsearch.hppc.predicates.IntObjectPredicate<? super VType>> T forEach(T predicate)- Specified by:
forEachin interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
indexOf
public int indexOf(int key)- Specified by:
indexOfin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
indexExists
public boolean indexExists(int index)- Specified by:
indexExistsin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
indexGet
- Specified by:
indexGetin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
indexReplace
- Specified by:
indexReplacein interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
indexInsert
- Specified by:
indexInsertin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
release
public void release()- Specified by:
releasein interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
visualizeKeyDistribution
- Specified by:
visualizeKeyDistributionin interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-