-
public class LiveCounterUpdate extends ObjectUpdate
Represents an update that occurred on a LiveCounter object. Contains information about counter value changes from increment/decrement operations. Updates can represent positive changes (increments) or negative changes (decrements).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLiveCounterUpdate.UpdateContains the specific details of a counter update operation.
-
Constructor Summary
Constructors Constructor Description LiveCounterUpdate()Creates a no-op LiveCounterUpdate representing no actual change. LiveCounterUpdate(Double amount)Creates a LiveCounterUpdate with the specified amount change.
-
Method Summary
Modifier and Type Method Description LiveCounterUpdate.UpdategetUpdate()Gets the update information containing the amount of change. StringtoString()Returns a string representation of this LiveCounterUpdate. -
-
Constructor Detail
-
LiveCounterUpdate
LiveCounterUpdate()
Creates a no-op LiveCounterUpdate representing no actual change.
-
LiveCounterUpdate
LiveCounterUpdate(Double amount)
Creates a LiveCounterUpdate with the specified amount change.- Parameters:
amount- the amount by which the counter changed (positive = increment, negative = decrement)
-
-
Method Detail
-
getUpdate
@NotNull() LiveCounterUpdate.Update getUpdate()
Gets the update information containing the amount of change.
-
-
-
-