Class HashCode<V>
- java.lang.Object
-
- org.exoplatform.services.cache.invalidation.HashCode<V>
-
- All Implemented Interfaces:
Externalizable,Serializable
public final class HashCode<V> extends Object implements Externalizable
We use this class to propagate the hash code of the value efficiently over the network- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)VgetValue()inthashCode()voidreadExternal(ObjectInput in)StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
HashCode
public HashCode()
-
HashCode
public HashCode(V value)
-
-
Method Detail
-
getValue
public V getValue()
- Returns:
- the value
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException- See Also:
Externalizable.writeExternal(java.io.ObjectOutput)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException- See Also:
Externalizable.readExternal(java.io.ObjectInput)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject- See Also:
Object.hashCode()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject- See Also:
Object.equals(java.lang.Object)
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-