Package 

Class LiveCounterUpdate


  • 
    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 class LiveCounterUpdate.Update

      Contains 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.Update getUpdate() Gets the update information containing the amount of change.
      String toString() Returns a string representation of this LiveCounterUpdate.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)