net.sf.xtract.util
Class SoftHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by net.sf.xtract.util.SoftHashMap<K,V>
All Implemented Interfaces:
java.util.Map<K,V>

public class SoftHashMap<K,V>
extends java.util.AbstractMap<K,V>


Constructor Summary
SoftHashMap()
           
SoftHashMap(int pCapacity)
           
SoftHashMap(int pCapacity, float pLoadFactor)
           
 
Method Summary
 void clear()
           
 java.util.Set<java.util.Map.Entry<K,V>> entrySet()
           
 V get(K pKey)
           
 V put(K pKey, V pValue)
          Here we put the key, value pair into the HashMap using a SoftValue object.
 V remove(K pKey)
           
 int size()
           
 
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SoftHashMap

public SoftHashMap()

SoftHashMap

public SoftHashMap(int pCapacity)

SoftHashMap

public SoftHashMap(int pCapacity,
                   float pLoadFactor)
Method Detail

get

public V get(K pKey)

put

public V put(K pKey,
             V pValue)
Here we put the key, value pair into the HashMap using a SoftValue object.

Specified by:
put in interface java.util.Map<K,V>
Overrides:
put in class java.util.AbstractMap<K,V>

remove

public V remove(K pKey)

clear

public void clear()
Specified by:
clear in interface java.util.Map<K,V>
Overrides:
clear in class java.util.AbstractMap<K,V>

size

public int size()
Specified by:
size in interface java.util.Map<K,V>
Overrides:
size in class java.util.AbstractMap<K,V>

entrySet

public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface java.util.Map<K,V>
Specified by:
entrySet in class java.util.AbstractMap<K,V>


Copyright © 2005 . All Rights Reserved.