org.apache.jcs.utils.struct
Class LRUMapEntry<K,V>

java.lang.Object
  extended by org.apache.jcs.utils.struct.LRUMapEntry<K,V>
All Implemented Interfaces:
Serializable, Map.Entry<K,V>

public class LRUMapEntry<K,V>
extends Object
implements Map.Entry<K,V>, Serializable

Entry for the LRUMap.

Author:
Aaron Smuts
See Also:
Serialized Form

Constructor Summary
LRUMapEntry(K key, V value)
          S
 
Method Summary
 K getKey()
           
 V getValue()
           
 V setValue(V valueArg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

LRUMapEntry

public LRUMapEntry(K key,
                   V value)
S

Parameters:
key -
value -
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface Map.Entry<K,V>
Returns:
key

getValue

public V getValue()
Specified by:
getValue in interface Map.Entry<K,V>
Returns:
value

setValue

public V setValue(V valueArg)
Specified by:
setValue in interface Map.Entry<K,V>
Parameters:
valueArg -
Returns:
the old value


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.