public static class ImmutableOpenIntMap.Builder<VType> extends Object implements com.carrotsearch.hppc.IntObjectMap<VType>
| Constructor and Description |
|---|
ImmutableOpenIntMap.Builder() |
ImmutableOpenIntMap.Builder(ImmutableOpenIntMap<VType> map) |
ImmutableOpenIntMap.Builder(int size) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableOpenIntMap<VType> |
build()
Builds a new instance of the
|
void |
clear() |
boolean |
containsKey(int key) |
<T extends com.carrotsearch.hppc.predicates.IntObjectPredicate<? super VType>> |
forEach(T predicate) |
<T extends com.carrotsearch.hppc.procedures.IntObjectProcedure<? super VType>> |
forEach(T procedure) |
ImmutableOpenIntMap.Builder<VType> |
fPut(int key,
VType value)
A put operation that can be used in the fluent pattern.
|
ImmutableOpenIntMap.Builder<VType> |
fRemove(int key)
Remove that can be used in the fluent pattern.
|
VType |
get(int key) |
VType |
getOrDefault(int kType,
VType vType) |
boolean |
indexExists(int index) |
VType |
indexGet(int index) |
void |
indexInsert(int index,
int key,
VType value) |
int |
indexOf(int key) |
VType |
indexReplace(int index,
VType newValue) |
boolean |
isEmpty() |
Iterator<com.carrotsearch.hppc.cursors.IntObjectCursor<VType>> |
iterator() |
com.carrotsearch.hppc.IntCollection |
keys() |
VType |
put(int key,
VType value) |
int |
putAll(com.carrotsearch.hppc.IntObjectAssociativeContainer<? extends VType> container) |
int |
putAll(Iterable<? extends com.carrotsearch.hppc.cursors.IntObjectCursor<? extends VType>> iterable) |
ImmutableOpenIntMap.Builder<VType> |
putAll(Map<Integer,VType> map)
Puts all the entries in the map to the builder.
|
void |
release() |
VType |
remove(int key) |
int |
removeAll(com.carrotsearch.hppc.IntContainer container) |
int |
removeAll(com.carrotsearch.hppc.predicates.IntObjectPredicate<? super VType> predicate) |
int |
removeAll(com.carrotsearch.hppc.predicates.IntPredicate predicate) |
int |
size() |
com.carrotsearch.hppc.ObjectContainer<VType> |
values() |
String |
visualizeKeyDistribution(int characters) |
public ImmutableOpenIntMap.Builder()
public ImmutableOpenIntMap.Builder(int size)
public ImmutableOpenIntMap.Builder(ImmutableOpenIntMap<VType> map)
public ImmutableOpenIntMap<VType> build()
public ImmutableOpenIntMap.Builder<VType> putAll(Map<Integer,VType> map)
public ImmutableOpenIntMap.Builder<VType> fPut(int key, VType value)
public VType put(int key, VType value)
put in interface com.carrotsearch.hppc.IntObjectMap<VType>public VType get(int key)
get in interface com.carrotsearch.hppc.IntObjectMap<VType>public VType getOrDefault(int kType, VType vType)
getOrDefault in interface com.carrotsearch.hppc.IntObjectMap<VType>public ImmutableOpenIntMap.Builder<VType> fRemove(int key)
public VType remove(int key)
remove in interface com.carrotsearch.hppc.IntObjectMap<VType>public boolean containsKey(int key)
containsKey in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public int size()
size in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public boolean isEmpty()
isEmpty in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public void clear()
clear in interface com.carrotsearch.hppc.IntObjectMap<VType>public int putAll(com.carrotsearch.hppc.IntObjectAssociativeContainer<? extends VType> container)
putAll in interface com.carrotsearch.hppc.IntObjectMap<VType>public int putAll(Iterable<? extends com.carrotsearch.hppc.cursors.IntObjectCursor<? extends VType>> iterable)
putAll in interface com.carrotsearch.hppc.IntObjectMap<VType>public int removeAll(com.carrotsearch.hppc.IntContainer container)
removeAll in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public int removeAll(com.carrotsearch.hppc.predicates.IntPredicate predicate)
removeAll in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public <T extends com.carrotsearch.hppc.procedures.IntObjectProcedure<? super VType>> T forEach(T procedure)
forEach in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public com.carrotsearch.hppc.IntCollection keys()
keys in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public com.carrotsearch.hppc.ObjectContainer<VType> values()
values in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public int removeAll(com.carrotsearch.hppc.predicates.IntObjectPredicate<? super VType> predicate)
removeAll in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public <T extends com.carrotsearch.hppc.predicates.IntObjectPredicate<? super VType>> T forEach(T predicate)
forEach in interface com.carrotsearch.hppc.IntObjectAssociativeContainer<VType>public int indexOf(int key)
indexOf in interface com.carrotsearch.hppc.IntObjectMap<VType>public boolean indexExists(int index)
indexExists in interface com.carrotsearch.hppc.IntObjectMap<VType>public VType indexGet(int index)
indexGet in interface com.carrotsearch.hppc.IntObjectMap<VType>public VType indexReplace(int index, VType newValue)
indexReplace in interface com.carrotsearch.hppc.IntObjectMap<VType>public void indexInsert(int index,
int key,
VType value)
indexInsert in interface com.carrotsearch.hppc.IntObjectMap<VType>public void release()
release in interface com.carrotsearch.hppc.IntObjectMap<VType>Copyright © 2009–2016. All rights reserved.