org.openspaces.memcached
Class Key
java.lang.Object
  
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)
 
            | 
 
 
 
bytes
public byte[] bytes
Key
public Key()
Key
public Key(byte[] bytes)
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
 
Copyright © GigaSpaces.