SMSLib 3.5.3

org.smslib
Class Group

java.lang.Object
  extended by org.smslib.Group

public class Group
extends java.lang.Object

The Group class represent a group of destination numbers.


Constructor Summary
Group(java.lang.String myGroupName)
           
 
Method Summary
 void addNumber(java.lang.String number)
          Adds a number to the group.
 void clear()
          Removes all numbers from the group (clears the group).
 java.lang.String getName()
          Returns the group name.
 java.util.Collection<java.lang.String> getNumbers()
          Returns the numbers associated with the group.
 boolean removeNumber(java.lang.String number)
          Removes a number from the group.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Group

public Group(java.lang.String myGroupName)
Method Detail

getName

public java.lang.String getName()
Returns the group name.

Returns:
The group name.

getNumbers

public java.util.Collection<java.lang.String> getNumbers()
Returns the numbers associated with the group.

Returns:
The numbers associated with the group.

addNumber

public void addNumber(java.lang.String number)
Adds a number to the group.

Parameters:
number - The number to add to the group.

removeNumber

public boolean removeNumber(java.lang.String number)
Removes a number from the group.

Parameters:
number - The number to be removed from the group.
Returns:
True if the removal was a success. False if the number was not found.

clear

public void clear()
Removes all numbers from the group (clears the group).


SMSLib 3.5.3

(c) 2002-2011, http://smslib.org