public static class ImmutableOpenMap.Builder<KType,VType>
extends java.lang.Object
implements com.carrotsearch.hppc.ObjectObjectMap<KType,VType>
Constructor and Description |
---|
Builder() |
Builder(ImmutableOpenMap<KType,VType> map) |
Builder(int size) |
Modifier and Type | Method and Description |
---|---|
ImmutableOpenMap<KType,VType> |
build()
Builds a new instance of the
|
<K,V> ImmutableOpenMap.Builder<K,V> |
cast() |
void |
clear() |
boolean |
containsKey(KType key) |
<T extends com.carrotsearch.hppc.predicates.ObjectObjectPredicate<? super KType,? super VType>> |
forEach(T predicate) |
<T extends com.carrotsearch.hppc.procedures.ObjectObjectProcedure<? super KType,? super VType>> |
forEach(T procedure) |
ImmutableOpenMap.Builder<KType,VType> |
fPut(KType key,
VType value)
A put operation that can be used in the fluent pattern.
|
ImmutableOpenMap.Builder<KType,VType> |
fRemove(KType key)
Remove that can be used in the fluent pattern.
|
VType |
get(KType key) |
VType |
getOrDefault(KType kType,
VType vType) |
boolean |
indexExists(int index) |
VType |
indexGet(int index) |
void |
indexInsert(int index,
KType key,
VType value) |
int |
indexOf(KType key) |
VType |
indexReplace(int index,
VType newValue) |
boolean |
isEmpty() |
java.util.Iterator<com.carrotsearch.hppc.cursors.ObjectObjectCursor<KType,VType>> |
iterator() |
com.carrotsearch.hppc.ObjectCollection<KType> |
keys() |
VType |
put(KType key,
VType value) |
int |
putAll(java.lang.Iterable<? extends com.carrotsearch.hppc.cursors.ObjectObjectCursor<? extends KType,? extends VType>> iterable) |
ImmutableOpenMap.Builder<KType,VType> |
putAll(java.util.Map<KType,VType> map)
Puts all the entries in the map to the builder.
|
int |
putAll(com.carrotsearch.hppc.ObjectObjectAssociativeContainer<? extends KType,? extends VType> container) |
void |
release() |
VType |
remove(KType key) |
int |
removeAll(com.carrotsearch.hppc.ObjectContainer<? super KType> container) |
int |
removeAll(com.carrotsearch.hppc.predicates.ObjectObjectPredicate<? super KType,? super VType> predicate) |
int |
removeAll(com.carrotsearch.hppc.predicates.ObjectPredicate<? super KType> predicate) |
int |
size() |
com.carrotsearch.hppc.ObjectContainer<VType> |
values() |
java.lang.String |
visualizeKeyDistribution(int characters) |
public Builder()
public Builder(int size)
public Builder(ImmutableOpenMap<KType,VType> map)
public ImmutableOpenMap<KType,VType> build()
public ImmutableOpenMap.Builder<KType,VType> putAll(java.util.Map<KType,VType> map)
public ImmutableOpenMap.Builder<KType,VType> fPut(KType key, VType value)
public int putAll(com.carrotsearch.hppc.ObjectObjectAssociativeContainer<? extends KType,? extends VType> container)
public int putAll(java.lang.Iterable<? extends com.carrotsearch.hppc.cursors.ObjectObjectCursor<? extends KType,? extends VType>> iterable)
public ImmutableOpenMap.Builder<KType,VType> fRemove(KType key)
public java.util.Iterator<com.carrotsearch.hppc.cursors.ObjectObjectCursor<KType,VType>> iterator()
public boolean containsKey(KType key)
public int size()
public boolean isEmpty()
public int removeAll(com.carrotsearch.hppc.ObjectContainer<? super KType> container)
public int removeAll(com.carrotsearch.hppc.predicates.ObjectPredicate<? super KType> predicate)
public <T extends com.carrotsearch.hppc.procedures.ObjectObjectProcedure<? super KType,? super VType>> T forEach(T procedure)
public void clear()
public com.carrotsearch.hppc.ObjectCollection<KType> keys()
public com.carrotsearch.hppc.ObjectContainer<VType> values()
public <K,V> ImmutableOpenMap.Builder<K,V> cast()
public int removeAll(com.carrotsearch.hppc.predicates.ObjectObjectPredicate<? super KType,? super VType> predicate)
public <T extends com.carrotsearch.hppc.predicates.ObjectObjectPredicate<? super KType,? super VType>> T forEach(T predicate)
public int indexOf(KType key)
public boolean indexExists(int index)
public VType indexGet(int index)
public void release()