org.infinispan.marshall
Class EntryData<K,V>
java.lang.Object
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
EntryData
public EntryData(K key,
V value)
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.