org.infinispan.util
Class ByteArrayKey

java.lang.Object
  extended by org.infinispan.util.ByteArrayKey
All Implemented Interfaces:
Serializable

public final 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

Nested Class Summary
static class ByteArrayKey.Externalizer
           
 
Constructor Summary
ByteArrayKey(byte[] data)
           
 
Method Summary
 boolean equals(Object obj)
           
 byte[] getData()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteArrayKey

public ByteArrayKey(byte[] data)
Method Detail

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 © 2012 JBoss, a division of Red Hat. All Rights Reserved.