Package net.spy.memcached
Class CASValue<T>
- java.lang.Object
-
- net.spy.memcached.CASValue<T>
-
public class CASValue<T> extends java.lang.Object
A value with a CAS identifier.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCas()
Get the CAS identifier.T
getValue()
Get the object value.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-