[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eMemcacheService.CasValues\u003c/code\u003e is a class designed to hold values for compare-and-set operations, where \u003ccode\u003eexpiration\u003c/code\u003e and \u003ccode\u003enewValue\u003c/code\u003e can be null.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits members from \u003ccode\u003eObject\u003c/code\u003e, including methods like \u003ccode\u003eclone()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003ehashCode()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available: one takes \u003ccode\u003eoldValue\u003c/code\u003e and \u003ccode\u003enewValue\u003c/code\u003e, and the other takes \u003ccode\u003eoldValue\u003c/code\u003e, \u003ccode\u003enewValue\u003c/code\u003e, and \u003ccode\u003eexpiration\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to retrieve the old value (\u003ccode\u003egetOldValue\u003c/code\u003e), the new value (\u003ccode\u003egetNewValue\u003c/code\u003e), and the expiration (\u003ccode\u003egetExipration\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe class overrides \u003ccode\u003eequals()\u003c/code\u003e and \u003ccode\u003ehashCode()\u003c/code\u003e from \u003ccode\u003eObject\u003c/code\u003e for specific comparison and hashing operations.\u003c/p\u003e\n"]]],[],null,["# Class MemcacheService.CasValues (2.0.0)\n\n public static final class MemcacheService.CasValues\n\nA holder for compare and set values.\n[expiration](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.memcache.Expiration) and `newValue` can be null. \n\nInheritance\n-----------\n\n[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e MemcacheService.CasValues \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### CasValues(MemcacheService.IdentifiableValue oldValue, Object newValue)\n\n public CasValues(MemcacheService.IdentifiableValue oldValue, Object newValue)\n\n### CasValues(MemcacheService.IdentifiableValue oldValue, Object newValue, Expiration expiration)\n\n public CasValues(MemcacheService.IdentifiableValue oldValue, Object newValue, Expiration expiration)\n\nMethods\n-------\n\n### equals(Object otherObj)\n\n public boolean equals(Object otherObj)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getExipration()\n\n public Expiration getExipration()\n\n### getNewValue()\n\n public Object getNewValue()\n\n### getOldValue()\n\n public MemcacheService.IdentifiableValue getOldValue()\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)"]]