Class ValueEvent<V>

  • Type Parameters:
    V - The type of value to be reported.
    All Implemented Interfaces:
    com.globalmentor.event.Event, GuiseEvent, java.io.Serializable

    public class ValueEvent<V>
    extends AbstractGuiseEvent
    An event reporting a value.
    Author:
    Garret Wilson
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueEvent​(java.lang.Object source, V value)
      Source and value constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V getValue()  
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.globalmentor.event.Event

        getSource
    • Constructor Detail

      • ValueEvent

        public ValueEvent​(java.lang.Object source,
                          V value)
        Source and value constructor.
        Parameters:
        source - The object on which the event initially occurred.
        value - The value being reported.
        Throws:
        java.lang.NullPointerException - if the given source is null.
    • Method Detail

      • getValue

        public V getValue()
        Returns:
        The value being reported.