Package org.elasticsearch.common.collect
Class ImmutableOpenMap.Builder<KType,VType>
java.lang.Object
org.elasticsearch.common.collect.ImmutableOpenMap.Builder<KType,VType>
- Enclosing class:
- ImmutableOpenMap<KType,
VType>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new ImmutableOpenMap from this builder.<K,
V> ImmutableOpenMap.Builder<K, V> cast()
void
clear()
boolean
containsKey
(KType key) A put operation that can be used in the fluent pattern.Remove that can be used in the fluent pattern.getOrDefault
(KType kType, VType vType) boolean
indexExists
(int index) indexGet
(int index) void
indexInsert
(int index, KType key, VType value) int
indexReplace
(int index, VType newValue) boolean
isEmpty()
keys()
void
putAll
(ImmutableOpenMap.Builder<KType, VType> builder) putAllFromMap
(Map<KType, VType> map) Puts all the entries in the map to the builder.void
release()
int
removeAll
(BiPredicate<? super KType, ? super VType> predicate) int
void
removeAllFromCollection
(Collection<KType> collection) int
size()
visualizeKeyDistribution
(int characters)
-
Constructor Details
-
Builder
public Builder() -
Builder
public Builder(int size) -
Builder
-
-
Method Details
-
build
Builds a new ImmutableOpenMap from this builder. -
putAllFromMap
Puts all the entries in the map to the builder. -
fPut
A put operation that can be used in the fluent pattern. -
put
-
get
-
getOrDefault
-
putAll
-
fRemove
Remove that can be used in the fluent pattern. -
remove
-
containsKey
-
size
public int size() -
isEmpty
public boolean isEmpty() -
removeAll
-
removeAllFromCollection
-
clear
public void clear() -
keys
-
cast
-
removeAll
-
indexOf
-
indexExists
public boolean indexExists(int index) -
indexGet
-
indexReplace
-
indexInsert
-
release
public void release() -
visualizeKeyDistribution
-