org.dozer.cache
Class CacheEntry<KeyType,ValueType>

java.lang.Object
  extended by org.dozer.cache.CacheEntry<KeyType,ValueType>

public class CacheEntry<KeyType,ValueType>
extends Object

Internal class that represents one entry in the cache. Holds the cache value, unique key for lookup, and creation time. Only intended for internal use.

Author:
tierney.matt, dmitry.buzdin

Constructor Summary
CacheEntry(KeyType key, ValueType value)
           
 
Method Summary
 boolean equals(Object object)
           
 KeyType getKey()
           
 ValueType getValue()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheEntry

public CacheEntry(KeyType key,
                  ValueType value)
Method Detail

getKey

public KeyType getKey()

getValue

public ValueType getValue()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005-2011 dozer. All Rights Reserved.