public class ArrayMap<E> extends AbstractInt2ObjectMap<E>
Note that for implementation reasons, the map may not contain null values. Keys that are mapped to null are treated as if they were not present.
AbstractInt2ObjectMap.BasicEntry<V>Int2ObjectMap.Entry<V>, Int2ObjectMap.FastEntrySet<V>| Constructor and Description |
|---|
ArrayMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(int k) |
E |
get(int i) |
String |
getStatistics() |
ObjectSet<Int2ObjectMap.Entry<E>> |
int2ObjectEntrySet() |
IntSet |
keySet() |
E |
put(int key,
E value) |
E |
remove(int key) |
int |
size() |
containsValue, entrySet, equals, hashCode, isEmpty, putAll, toString, valuescontainsKey, defaultReturnValue, defaultReturnValue, get, put, removedefaultReturnValue, defaultReturnValuecontainsKey, get, put, removecompute, computeIfAbsent, computeIfPresent, containsKey, forEach, get, getOrDefault, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAllpublic String getStatistics()
public E get(int i)
public boolean containsKey(int k)
containsKey in interface Int2ObjectFunction<E>containsKey in class AbstractInt2ObjectMap<E>public E put(int key, E value)
put in interface Int2ObjectFunction<E>put in class AbstractInt2ObjectFunction<E>public int size()
public void clear()
public E remove(int key)
remove in interface Int2ObjectFunction<E>remove in class AbstractInt2ObjectFunction<E>public IntSet keySet()
keySet in interface Int2ObjectMap<E>keySet in interface Map<Integer,E>keySet in class AbstractInt2ObjectMap<E>public ObjectSet<Int2ObjectMap.Entry<E>> int2ObjectEntrySet()
Copyright © 2017. All rights reserved.