org.infinispan.util
Class ByteArrayKey
java.lang.Object
org.infinispan.util.ByteArrayKey
- All Implemented Interfaces:
- Serializable
public class ByteArrayKey
- extends Object
- implements Serializable
Wrapper class for byte[] keys.
The class can be marshalled either via its externalizer or via the JVM
serialization. The reason for supporting both methods is to enable
third-party libraries to be able to marshall/unmarshall them using standard
JVM serialization rules. The Infinispan marshalling layer will always
chose the most performant one, aka the externalizer method.
- Since:
- 4.1
- Author:
- Galder ZamarreƱo
- See Also:
- Serialized Form
ByteArrayKey
public ByteArrayKey(byte[] data)
getData
public byte[] getData()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.