railo.commons.lang
Class SoftHashMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by railo.commons.lang.SoftHashMap
All Implemented Interfaces:
Map, Sizeable

public class SoftHashMap
extends AbstractMap
implements Sizeable


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
SoftHashMap()
           
SoftHashMap(int hardSize)
           
 
Method Summary
 void clear()
           
 Set entrySet()
           
 Object get(Object key)
           
 Object put(Object key, Object value)
           
 Object remove(Object key)
           
 int size()
           
 long sizeOf()
          return the size of the object
 
Methods inherited from class java.util.AbstractMap
containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoftHashMap

public SoftHashMap()

SoftHashMap

public SoftHashMap(int hardSize)
Method Detail

get

public Object get(Object key)
Specified by:
get in interface Map
Overrides:
get in class AbstractMap

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class AbstractMap

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class AbstractMap

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class AbstractMap

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class AbstractMap

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

sizeOf

public long sizeOf()
Description copied from interface: Sizeable
return the size of the object

Specified by:
sizeOf in interface Sizeable
Returns:
size of the object


Copyright © 2012 Railo