Package com.couchbase.client.java.kv
Class CounterResult
java.lang.Object
com.couchbase.client.java.kv.MutationResult
com.couchbase.client.java.kv.CounterResult
Result returned from counter (increment, decrement) operations.
- Since:
- 3.0.0
-
Constructor Summary
ConstructorDescriptionCounterResult
(CoreCounterResult coreCounterResult) Creates a newCounterResult
. -
Method Summary
Methods inherited from class com.couchbase.client.java.kv.MutationResult
cas, mutationToken
-
Constructor Details
-
CounterResult
Creates a newCounterResult
.- Parameters:
coreCounterResult
- counter result from core.
-
-
Method Details
-
content
public long content()The new counter value after the mutation has been performed.- Returns:
- the modified counter value.
-
toString
- Overrides:
toString
in classMutationResult
-
equals
- Overrides:
equals
in classMutationResult
-
hashCode
public int hashCode()- Overrides:
hashCode
in classMutationResult
-