public class HashableMarshalledValue<T> extends SimpleMarshalledValue<T>
SimpleMarshalledValue, but also serializes the underlying object's hash code,
so that this object can still be hashed, even if deserialized, but not yet rehydrated.| Constructor and Description |
|---|
HashableMarshalledValue() |
HashableMarshalledValue(T object,
MarshallingContext context) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
int |
hashCode()
N.B.
|
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
get, toStringpublic HashableMarshalledValue(T object, MarshallingContext context)
object - context - IOExceptionpublic HashableMarshalledValue()
public int hashCode()
SimpleMarshalledValueinstead.hashCode in class SimpleMarshalledValue<T>Object.hashCode()public boolean equals(Object object)
equals in class SimpleMarshalledValue<T>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class SimpleMarshalledValue<T>IOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class SimpleMarshalledValue<T>IOExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.