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 long
cas()
If the document is present, returns its current CAS value at the time of the exists operation.boolean
equals(Object o)
boolean
exists()
True if the document exists, false otherwise.int
hashCode()
String
toString()
-
-
-
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.
-
-