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() |
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 © 2014 BioJava. All rights reserved.