public class SmallMap extends AbstractMap implements Serializable
This implementation has the useful property that the iteration order is the same as the order in which mappings are added.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SmallMap() |
SmallMap(int size) |
SmallMap(Map m) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
Set |
entrySet() |
Object |
get(Object key) |
Set |
keySet() |
Object |
put(Object key,
Object value) |
int |
size() |
clear, clone, containsValue, equals, hashCode, isEmpty, putAll, remove, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Object get(Object key)
get
in interface Map
get
in class AbstractMap
NullPointerException
- if key is nullpublic Object put(Object key, Object value)
put
in interface Map
put
in class AbstractMap
NullPointerException
- if key is nullpublic Set keySet()
keySet
in interface Map
keySet
in class AbstractMap
public Set entrySet()
entrySet
in interface Map
entrySet
in class AbstractMap
public int size()
size
in interface Map
size
in class AbstractMap
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in class AbstractMap
Copyright © 2000–2018 BioJava. All rights reserved.