GigaSpaces XAP 9.1 API

org.openspaces.memcached
Class Key

java.lang.Object
  extended by org.openspaces.memcached.Key
All Implemented Interfaces:
Externalizable, Serializable

public class Key
extends Object
implements Externalizable

Represents a given key for lookup in the cache. Wraps a byte array with a precomputed hashCode.

See Also:
Serialized Form

Field Summary
 byte[] bytes
           
 
Constructor Summary
Key()
           
Key(byte[] bytes)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

bytes

public byte[] bytes
Constructor Detail

Key

public Key()

Key

public Key(byte[] bytes)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.