public class SoftHashMap extends AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static int |
DEFAULT_LIMIT |
| Constructor and Description |
|---|
SoftHashMap() |
SoftHashMap(int hardSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Set |
entrySet() |
Object |
get(Object key) |
Object |
put(Object key,
Object value)
Here we put the key, value pair into the HashMap using a SoftValue
object.
|
Object |
remove(Object key) |
int |
size() |
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, valuespublic static final boolean DEBUG
public static final int DEFAULT_LIMIT
public SoftHashMap()
public SoftHashMap(int hardSize)
public Object get(Object key)
get in interface Mapget in class AbstractMappublic Object put(Object key, Object value)
put in interface Mapput in class AbstractMappublic Object remove(Object key)
remove in interface Mapremove in class AbstractMappublic void clear()
clear in interface Mapclear in class AbstractMappublic int size()
size in interface Mapsize in class AbstractMapCopyright © 2014 BioJava. All rights reserved.