edu.jhu.cs.oose.group3.intelligentbook.model
Class EverybodyGroup

java.lang.Object
  extended by edu.jhu.cs.oose.group3.intelligentbook.model.ContactGroup
      extended by edu.jhu.cs.oose.group3.intelligentbook.model.AutomaticGroup
          extended by edu.jhu.cs.oose.group3.intelligentbook.model.EverybodyGroup
All Implemented Interfaces:
java.lang.Comparable<ContactGroup>

public class EverybodyGroup
extends AutomaticGroup

A group in which everybody (every valid contact) is a member


Constructor Summary
EverybodyGroup()
          Constructs everybody group with group named "Everybody"
EverybodyGroup(java.lang.String groupName)
          Constructs everybody group with the specified group name
 
Method Summary
 java.util.Set<Contact> getAllContacts()
          Get all contacts in the group
 boolean hasContact(Contact c)
          Get whether or not the specified contact is in the group
 
Methods inherited from class edu.jhu.cs.oose.group3.intelligentbook.model.AutomaticGroup
getBasedGroupKeys, setBasedGroupKeys
 
Methods inherited from class edu.jhu.cs.oose.group3.intelligentbook.model.ContactGroup
compareTo, getGroupId, getGroupName, isEnumerated, setGroupName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EverybodyGroup

public EverybodyGroup()
Constructs everybody group with group named "Everybody"


EverybodyGroup

public EverybodyGroup(java.lang.String groupName)
Constructs everybody group with the specified group name

Parameters:
groupName - group name
Method Detail

getAllContacts

public java.util.Set<Contact> getAllContacts()
Description copied from class: ContactGroup
Get all contacts in the group

Specified by:
getAllContacts in class ContactGroup
Returns:
all contacts in the group

hasContact

public boolean hasContact(Contact c)
Description copied from class: ContactGroup
Get whether or not the specified contact is in the group

Specified by:
hasContact in class ContactGroup
Parameters:
c - the contact