Package org.elasticsearch.common.collect
Class ImmutableOpenIntMap<VType>
java.lang.Object
org.elasticsearch.common.collect.ImmutableOpenIntMap<VType>
An immutable map implementation based on open hash map.
Can be constructed using a builder()
, or using builder(org.elasticsearch.common.collect.ImmutableOpenIntMap)
(which is an optimized option to copy over existing content and modify it).
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <VType> ImmutableOpenIntMap.Builder<VType>
builder()
static <VType> ImmutableOpenIntMap.Builder<VType>
builder
(int size) static <VType> ImmutableOpenIntMap.Builder<VType>
builder
(ImmutableOpenIntMap<VType> map) void
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
int
hashCode()
boolean
isEmpty()
keySet()
static <VType> ImmutableOpenIntMap<VType>
of()
void
int
size()
toString()
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<Integer,
VType>
-
containsValue
- Specified by:
containsValue
in interfaceMap<Integer,
VType>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
toString
-
equals
-
hashCode
public int hashCode() -
of
-
builder
-
builder
-
builder
-