net.rim.pushsdk.subscription.match
Class SubActiveMatchResult

java.lang.Object
  extended by net.rim.pushsdk.subscription.match.SubActiveMatchResult
All Implemented Interfaces:
Serializable

public class SubActiveMatchResult
extends Object
implements Serializable

Represents the match results returned by the SubActiveMatchManager class.

Author:
mdandrea
See Also:
SubActiveMatchManager, Serialized Form

Constructor Summary
SubActiveMatchResult(Set<String> activeAddresses, Set<SubscriberPartial> activeSubscribers)
          Constructs a SubActiveMatchResult with a set of active subscribers and a set of active addresses (e.g.
 
Method Summary
 boolean equals(Object obj)
          Returns true if two active subscribers match results are found to be equal and false otherwise.
 Set<String> getActiveAddresses()
          Gets the set of active addresses (e.g.
 Set<SubscriberPartial> getActiveSubscribers()
          Gets the set of active subscribers.
 int hashCode()
          Returns a hashcode for this active subscribers match result.
 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

SubActiveMatchResult

public SubActiveMatchResult(Set<String> activeAddresses,
                            Set<SubscriberPartial> activeSubscribers)
Constructs a SubActiveMatchResult with a set of active subscribers and a set of active addresses (e.g. PINs, email addresses) that were matched.

Parameters:
activeAddresses - a set of active addresses
activeSubscribers - a set of active subscribers
Method Detail

getActiveAddresses

public Set<String> getActiveAddresses()
Gets the set of active addresses (e.g. PINs, email addresses).

Returns:
the active addresses

getActiveSubscribers

public Set<SubscriberPartial> getActiveSubscribers()
Gets the set of active subscribers.

Returns:
the active subscribers

hashCode

public int hashCode()
Returns a hashcode for this active subscribers match result.

Overrides:
hashCode in class Object
Returns:
a hashcode for this active subscribers match result.

equals

public boolean equals(Object obj)
Returns true if two active subscribers match results are found to be equal and false otherwise.

Overrides:
equals in class Object
Returns:
whether two active subscribers match results are equal

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.