Package net.spy.memcached
Class CASValue<T>
- java.lang.Object
-
- net.spy.memcached.CASValue<T>
-
public class CASValue<T> extends java.lang.ObjectA value with a CAS identifier.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCas()Get the CAS identifier.TgetValue()Get the object value.java.lang.StringtoString()
-
-
-
Field Detail
-
cas
private final long cas
-
value
private final T value
-
-
Constructor Detail
-
CASValue
public CASValue(long c, T v)Construct a new CASValue with the given identifer and value.- Parameters:
c- the CAS identifierv- the value
-
-
Method Detail
-
getCas
public long getCas()
Get the CAS identifier.
-
getValue
public T getValue()
Get the object value.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-