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 Mapget in class AbstractMapNullPointerException - if key is nullpublic Object put(Object key, Object value)
put in interface Mapput in class AbstractMapNullPointerException - if key is nullpublic Set keySet()
keySet in interface MapkeySet in class AbstractMappublic Set entrySet()
entrySet in interface MapentrySet in class AbstractMappublic int size()
size in interface Mapsize in class AbstractMappublic boolean containsKey(Object key)
containsKey in interface MapcontainsKey in class AbstractMapCopyright © 2014 BioJava. All rights reserved.