Class AbstractSignal.Connection

  • Enclosing class:
    AbstractSignal

    public static class AbstractSignal.Connection
    extends java.lang.Object
    A signal connection.

    A connection is returned when an event listener is connected to a signal. It may be used to disconnect the listener at a later point from the signal.

    • Constructor Summary

      Constructors 
      Constructor Description
      Connection()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disconnect()
      Disconnect.
      boolean isConnected()
      Returns whether the connection is connected.
      • Methods inherited from class java.lang.Object

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

      • Connection

        public Connection()
    • Method Detail

      • disconnect

        public void disconnect()
        Disconnect.

        If the connection was not connected, this method does nothing.

      • isConnected

        public boolean isConnected()
        Returns whether the connection is connected.

        Returns:
        whether the connection is connected.