com.pusher.client.connection
Class ConnectionStateChange

java.lang.Object
  extended by com.pusher.client.connection.ConnectionStateChange

public class ConnectionStateChange
extends Object

Represents a change in connection state.


Constructor Summary
ConnectionStateChange(ConnectionState previousState, ConnectionState currentState)
          Used within the library to create a connection state change.
 
Method Summary
 boolean equals(Object obj)
           
 ConnectionState getCurrentState()
          The current connection state.
 ConnectionState getPreviousState()
          The previous connections state.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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 -
currentState -
Method Detail

getPreviousState

public ConnectionState getPreviousState()
The previous connections state. The state the connection has transitioned from.

Returns:

getCurrentState

public ConnectionState getCurrentState()
The current connection state. The state the connection has transitioned to.

Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013 Pusher. All Rights Reserved.