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, toString
public HashableMarshalledValue(T object, MarshallingContext context)
object
- context
- IOException
public HashableMarshalledValue()
public int hashCode()
SimpleMarshalledValue
instead
.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 Externalizable
writeExternal
in class SimpleMarshalledValue<T>
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
readExternal
in class SimpleMarshalledValue<T>
IOException
Copyright © 2013 JBoss by Red Hat. All rights reserved.