org.infinispan.marshall
Class EntryData<K,V>

java.lang.Object
  extended by org.infinispan.marshall.EntryData<K,V>
All Implemented Interfaces:
Externalizable, Serializable, Map.Entry<K,V>

public class EntryData<K,V>
extends Object
implements Externalizable, Map.Entry<K,V>

Serializable representation of an entry in the cache

Since:
4.0
Author:
Bela Ban
See Also:
Serialized Form

Constructor Summary
EntryData(K key, V value)
           
 
Method Summary
 boolean equals(Object o)
           
 K getKey()
           
 V getValue()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 V setValue(V value)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntryData

public EntryData(K key,
                 V value)
Method Detail

getKey

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

getValue

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

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Specified by:
equals in interface Map.Entry<K,V>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map.Entry<K,V>
Overrides:
hashCode in class Object

setValue

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


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.