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
ConstructorsConstructorDescriptionCounterResult(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:
toStringin classMutationResult
-
equals
- Overrides:
equalsin classMutationResult
-
hashCode
public int hashCode()- Overrides:
hashCodein classMutationResult
-