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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new instance of thevoid
clear()
boolean
containsKey(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)
boolean
indexExists(int index)
indexGet(int index)
void
indexInsert(int index, int key, VType value)
int
indexOf(int key)
indexReplace(int index, VType newValue)
boolean
isEmpty()
iterator()
com.carrotsearch.hppc.IntCollection
keys()
int
int
Puts all the entries in the map to the builder.void
release()
remove(int key)
int
removeAll(com.carrotsearch.hppc.IntContainer container)
int
int
removeAll(com.carrotsearch.hppc.predicates.IntPredicate predicate)
int
size()
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, wait
Methods inherited from interface com.carrotsearch.hppc.IntObjectMap
equals, hashCode
Methods 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:
put
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
get
- Specified by:
get
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
getOrDefault
- Specified by:
getOrDefault
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
fRemove
Remove that can be used in the fluent pattern. -
remove
- Specified by:
remove
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
iterator
-
containsKey
public boolean containsKey(int key)- Specified by:
containsKey
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
size
public int size()- Specified by:
size
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
clear
public void clear()- Specified by:
clear
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
putAll
- Specified by:
putAll
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
putAll
public int putAll(Iterable<? extends com.carrotsearch.hppc.cursors.IntObjectCursor<? extends VType>> iterable)- Specified by:
putAll
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
removeAll
public int removeAll(com.carrotsearch.hppc.IntContainer container)- Specified by:
removeAll
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
removeAll
public int removeAll(com.carrotsearch.hppc.predicates.IntPredicate predicate)- Specified by:
removeAll
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
forEach
public <T extends com.carrotsearch.hppc.procedures.IntObjectProcedure<? super VType>> T forEach(T procedure)- Specified by:
forEach
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
keys
public com.carrotsearch.hppc.IntCollection keys()- Specified by:
keys
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
values
- Specified by:
values
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
removeAll
- Specified by:
removeAll
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
forEach
public <T extends com.carrotsearch.hppc.predicates.IntObjectPredicate<? super VType>> T forEach(T predicate)- Specified by:
forEach
in interfacecom.carrotsearch.hppc.IntObjectAssociativeContainer<VType>
-
indexOf
public int indexOf(int key)- Specified by:
indexOf
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
indexExists
public boolean indexExists(int index)- Specified by:
indexExists
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
indexGet
- Specified by:
indexGet
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
indexReplace
- Specified by:
indexReplace
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
indexInsert
- Specified by:
indexInsert
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
release
public void release()- Specified by:
release
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-
visualizeKeyDistribution
- Specified by:
visualizeKeyDistribution
in interfacecom.carrotsearch.hppc.IntObjectMap<VType>
-