net.rim.pushsdk.push
Class PushIdAndApplicationId

java.lang.Object
  extended by net.rim.pushsdk.push.PushIdAndApplicationId
All Implemented Interfaces:
Serializable

public class PushIdAndApplicationId
extends Object
implements Serializable

Wrapper class for a push id and an application id.

Author:
mhogan
See Also:
Serialized Form

Constructor Summary
PushIdAndApplicationId(String pushId, String applicationId)
          Constructs a PushIdAndApplicationId with the given push id and push application id.
 
Method Summary
 boolean equals(Object object)
          Returns true if two PushIdAndApplicationIds are found to be equal and false otherwise.
 String getApplicationId()
          Gets the push application id.
 String getPushId()
          Gets the push id.
 int hashCode()
          Returns a hashcode for this PushIdAndApplicationId.
 void setApplicationId(String applicationId)
          Sets the push application id.
 void setPushId(String pushId)
          Sets the push id.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PushIdAndApplicationId

public PushIdAndApplicationId(String pushId,
                              String applicationId)
Constructs a PushIdAndApplicationId with the given push id and push application id.

Parameters:
pushId - the id of a push
applicationId - the id of a push application
Method Detail

getPushId

public String getPushId()
Gets the push id.

Returns:
the push id

setPushId

public void setPushId(String pushId)
Sets the push id.

Parameters:
pushId - the push id

getApplicationId

public String getApplicationId()
Gets the push application id.

Returns:
the push app id

setApplicationId

public void setApplicationId(String applicationId)
Sets the push application id.

Parameters:
applicationId - the push app id

equals

public boolean equals(Object object)
Returns true if two PushIdAndApplicationIds are found to be equal and false otherwise.

Overrides:
equals in class Object
Returns:
whether two PushIdAndApplicationIds are equal

hashCode

public int hashCode()
Returns a hashcode for this PushIdAndApplicationId.

Overrides:
hashCode in class Object
Returns:
a hashcode for this PushIdAndApplicationId

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.


Copyright © 2011 Research In Motion. All Rights Reserved.