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, values
public static final boolean DEBUG
public static final int DEFAULT_LIMIT
public SoftHashMap()
public SoftHashMap(int hardSize)
public Object get(Object key)
get
in interface Map
get
in class AbstractMap
public Object put(Object key, Object value)
put
in interface Map
put
in class AbstractMap
public Object remove(Object key)
remove
in interface Map
remove
in class AbstractMap
public void clear()
clear
in interface Map
clear
in class AbstractMap
public int size()
size
in interface Map
size
in class AbstractMap
Copyright © 2014 BioJava. All rights reserved.