com.thimbleware.jmemcached
Class Key

java.lang.Object
  extended by com.thimbleware.jmemcached.Key

public class Key
extends java.lang.Object

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


Field Summary
 org.jboss.netty.buffer.ChannelBuffer bytes
           
 
Constructor Summary
Key(org.jboss.netty.buffer.ChannelBuffer bytes)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bytes

public org.jboss.netty.buffer.ChannelBuffer bytes
Constructor Detail

Key

public Key(org.jboss.netty.buffer.ChannelBuffer bytes)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2008-2011 ThimbleWare. All Rights Reserved.