Class AtomicValueEvent<V>

  • Type Parameters:
    V - atomic value type

    public final class AtomicValueEvent<V>
    extends java.lang.Object
    Representation of a AtomicValue update notification.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AtomicValueEvent.Type
      AtomicValueEvent type.
    • Constructor Summary

      Constructors 
      Constructor Description
      AtomicValueEvent​(java.lang.String name, V newValue, V oldValue)
      Creates a new event object.
    • Constructor Detail

      • AtomicValueEvent

        public AtomicValueEvent​(java.lang.String name,
                                V newValue,
                                V oldValue)
        Creates a new event object.
        Parameters:
        name - AtomicValue name
        newValue - the new value
        oldValue - the old value
    • Method Detail

      • name

        public java.lang.String name()
        Returns the AtomicValue name.
        Returns:
        name of atomic value
      • type

        public AtomicValueEvent.Type type()
        Returns the type of the event.
        Returns:
        the type of the event
      • newValue

        public V newValue()
        Returns the newly set value.
        Returns:
        the new value
      • oldValue

        public V oldValue()
        Returns the old replaced value.
        Returns:
        the old value
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object