Package com.couchbase.client.java.kv
Class CounterResult
- java.lang.Object
-
- com.couchbase.client.java.kv.MutationResult
-
- com.couchbase.client.java.kv.CounterResult
-
public class CounterResult extends MutationResult
Result returned from counter (increment, decrement) operations.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description CounterResult(com.couchbase.client.core.api.kv.CoreCounterResult coreCounterResult)Creates a newCounterResult.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcontent()The new counter value after the mutation has been performed.booleanequals(Object o)inthashCode()StringtoString()-
Methods inherited from class com.couchbase.client.java.kv.MutationResult
cas, mutationToken
-
-
-
-
Constructor Detail
-
CounterResult
public CounterResult(com.couchbase.client.core.api.kv.CoreCounterResult coreCounterResult)
Creates a newCounterResult.- Parameters:
coreCounterResult- counter result from core.
-
-
Method Detail
-
content
public long content()
The new counter value after the mutation has been performed.- Returns:
- the modified counter value.
-
toString
public String toString()
- Overrides:
toStringin classMutationResult
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classMutationResult
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMutationResult
-
-