Class Envelope


  • class Envelope
    extends java.lang.Object
    Hold an event and the state of its notification
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object event  
      private boolean notified  
    • Constructor Summary

      Constructors 
      Constructor Description
      Envelope​(java.lang.Object event)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getEvent()  
      boolean isNotified()  
      void notified()
      set this event as notified
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • notified

        private boolean notified
      • event

        private final java.lang.Object event
    • Constructor Detail

      • Envelope

        Envelope​(java.lang.Object event)
    • Method Detail

      • isNotified

        public boolean isNotified()
        Returns:
        true if some listeners has been notified
      • getEvent

        public java.lang.Object getEvent()
      • notified

        public void notified()
        set this event as notified