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 SummaryConstructorsConstructorDescriptionCounterResult(CoreCounterResult coreCounterResult) Creates a newCounterResult.
- 
Method SummaryMethods inherited from class com.couchbase.client.java.kv.MutationResultcas, mutationToken
- 
Constructor Details- 
CounterResultCreates a newCounterResult.- Parameters:
- coreCounterResult- counter result from core.
 
 
- 
- 
Method Details- 
contentpublic long content()The new counter value after the mutation has been performed.- Returns:
- the modified counter value.
 
- 
toString- Overrides:
- toStringin class- MutationResult
 
- 
equals- Overrides:
- equalsin class- MutationResult
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- MutationResult
 
 
-