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>

public class ByteBufferMarshalledKey<K> extends ByteBufferMarshalledValue<K>
MarshalledValue implementation suitable for map keys that uses a ByteBufferMarshaller.
Author:
Paul Ferraro
See Also:
  • Constructor Details

    • ByteBufferMarshalledKey

      public ByteBufferMarshalledKey(K object, ByteBufferMarshaller marshaller)
      Constructs a marshalled key using the specified object and marshaller.
      Parameters:
      object - a key
      marshaller - a marshaller of the specified key
    • ByteBufferMarshalledKey

      public ByteBufferMarshalledKey(ByteBuffer buffer, int hashCode)
      Constructs a marshalled key using the specified byte buffer and hash code.
      Parameters:
      buffer - a byte buffer
      hashCode - the hash code of the key
  • Method Details