Package io.ably.lib.objects.type.counter
Class LiveCounterUpdate.Update
java.lang.Object
io.ably.lib.objects.type.counter.LiveCounterUpdate.Update
- Enclosing class:
- LiveCounterUpdate
Contains the specific details of a counter update operation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Update
Creates an Update with the specified amount.- Parameters:
-
amount- the counter change amount (positive = increment, negative = decrement)
-
-
Method Details
-
getAmount
Gets the amount by which the counter value was modified.- Returns:
- the change amount (positive for increments, negative for decrements)
-