Class ByteBufferMarshalledKey<K>
java.lang.Object
org.wildfly.clustering.marshalling.ByteBufferMarshalledValue<K>
org.wildfly.clustering.marshalling.ByteBufferMarshalledKey<K>
- Type Parameters:
K- the key type
- All Implemented Interfaces:
Serializable, MarshalledValue<K, ByteBufferMarshaller>
MarshalledValue implementation suitable for map keys that uses a ByteBufferMarshaller.- Author:
- Paul Ferraro
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionByteBufferMarshalledKey(ByteBuffer buffer, int hashCode) Constructs a marshalled key using the specified byte buffer and hash code.ByteBufferMarshalledKey(K object, ByteBufferMarshaller marshaller) Constructs a marshalled key using the specified object and marshaller. -
Method Summary
-
Constructor Details
-
ByteBufferMarshalledKey
Constructs a marshalled key using the specified object and marshaller.- Parameters:
object- a keymarshaller- a marshaller of the specified key
-
ByteBufferMarshalledKey
Constructs a marshalled key using the specified byte buffer and hash code.- Parameters:
buffer- a byte bufferhashCode- the hash code of the key
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCodein classByteBufferMarshalledValue<K>
-
equals
- Overrides:
equalsin classByteBufferMarshalledValue<K>
-