Class MemcacheService.CasValues (2.0.0)

public static final class MemcacheService.CasValues

A holder for compare and set values. expiration and newValue can be null.

Inheritance

Object > MemcacheService.CasValues

Constructors

CasValues(MemcacheService.IdentifiableValue oldValue, Object newValue)

public CasValues(MemcacheService.IdentifiableValue oldValue, Object newValue)
Parameters
Name Description
oldValue MemcacheService.IdentifiableValue
newValue Object

CasValues(MemcacheService.IdentifiableValue oldValue, Object newValue, Expiration expiration)

public CasValues(MemcacheService.IdentifiableValue oldValue, Object newValue, Expiration expiration)
Parameters
Name Description
oldValue MemcacheService.IdentifiableValue
newValue Object
expiration Expiration

Methods

equals(Object otherObj)

public boolean equals(Object otherObj)
Parameter
Name Description
otherObj Object
Returns
Type Description
boolean
Overrides

getExipration()

public Expiration getExipration()
Returns
Type Description
Expiration

getNewValue()

public Object getNewValue()
Returns
Type Description
Object

getOldValue()

public MemcacheService.IdentifiableValue getOldValue()
Returns
Type Description
MemcacheService.IdentifiableValue

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides