Package com.couchbase.client.java.kv
Class ExistsResult
- java.lang.Object
-
- com.couchbase.client.java.kv.ExistsResult
-
public class ExistsResult extends Object
Result returned from an exists KeyValue operation.- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcas()If the document is present, returns its current CAS value at the time of the exists operation.booleanequals(Object o)booleanexists()True if the document exists, false otherwise.inthashCode()StringtoString()
-
-
-
Method Detail
-
cas
@Volatile public long cas()
If the document is present, returns its current CAS value at the time of the exists operation.Note that if the document does not exist, this will return 0!
-
exists
public boolean exists()
True if the document exists, false otherwise.
-
-