Package com.pusher.client.connection
Class ConnectionStateChange
- java.lang.Object
-
- com.pusher.client.connection.ConnectionStateChange
-
public class ConnectionStateChange extends java.lang.Object
Represents a change in connection state.
-
-
Constructor Summary
Constructors Constructor Description ConnectionStateChange(ConnectionState previousState, ConnectionState currentState)Used within the library to create a connection state change.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ConnectionStategetCurrentState()The current connection state.ConnectionStategetPreviousState()The previous connections state.inthashCode()
-
-
-
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 statecurrentState- 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-