net.spy.memcached
Class CASValue<T>

java.lang.Object
  extended by net.spy.memcached.CASValue<T>

public class CASValue<T>
extends Object

A value with a CAS identifier.


Constructor Summary
CASValue(long c, T v)
          Construct a new CASValue with the given identifer and value.
 
Method Summary
 long getCas()
          Get the CAS identifier.
 T getValue()
          Get the object value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CASValue

public CASValue(long c,
                T v)
Construct a new CASValue with the given identifer and value.

Parameters:
c - the CAS identifier
v - the value
Method Detail

getCas

public long getCas()
Get the CAS identifier.


getValue

public T getValue()
Get the object value.


toString

public String toString()
Overrides:
toString in class Object