Class ConnectionStateChange

    • Constructor Detail

      • ConnectionStateChange

        public ConnectionStateChange​(ConnectionState previousState,
                                     ConnectionState currentState)
        Used within the library to create a connection state change. Not be used used as part of the API.
        Parameters:
        previousState - The previous connection state
        currentState - The current connection state
    • Method Detail

      • getPreviousState

        public ConnectionState getPreviousState()
        The previous connections state. The state the connection has transitioned from.
        Returns:
        The previous connection state
      • getCurrentState

        public ConnectionState getCurrentState()
        The current connection state. The state the connection has transitioned to.
        Returns:
        The current connection state
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object