SMSLib 3.5.3

org.smslib
Class Phonebook

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

public class Phonebook
extends java.lang.Object

The Phonebook class represents the phonebook. All phonebook entries are kept in the contacts collection. The class also provides some convinience / filtering methods for retrieving the contacts.


Constructor Summary
Phonebook()
           
 
Method Summary
 java.util.Collection<Contact> getContacts()
          Returns the contacts' collection with all (unfiltered) entries.
 java.util.Collection<Contact> getContacts(Contact.ContactLocation type)
          Filters the contacts by contact type and returns a collection of contacts matching the criteria.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Phonebook

public Phonebook()
Method Detail

getContacts

public java.util.Collection<Contact> getContacts()
Returns the contacts' collection with all (unfiltered) entries.

Returns:
The contacts' collection.

getContacts

public java.util.Collection<Contact> getContacts(Contact.ContactLocation type)
Filters the contacts by contact type and returns a collection of contacts matching the criteria.

Parameters:
type - The contact type.
Returns:
The contacts' collection matching the criteria. If no matching contact(s) is found, returns an empty collection.

SMSLib 3.5.3

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