public class BuddyGroup extends ArrayList
modCount| Constructor and Description |
|---|
BuddyGroup()
Creates a new buddy group.
|
BuddyGroup(String name)
Creates a new buddy group with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
Buddy |
addBuddy(String name)
Add a buddy to this buddy group with the given name.
|
boolean |
equals(BuddyGroup b)
Tests whether two buddy groups are equal.
|
boolean |
equals(Object b)
Describe
equals method here. |
Buddy |
findBuddy(String name)
Describe
findBuddy method here. |
String |
getName()
Get the value of name.
|
int |
hashCode()
The hascode.
|
void |
setName(String name)
Set the value of name.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAllpublic BuddyGroup()
public BuddyGroup(String name)
name - the namepublic Buddy addBuddy(String name)
name - the buddy nameBuddy addedpublic Buddy findBuddy(String name)
findBuddy method here.name - a String valueBuddy valuepublic String getName()
public void setName(String name)
name - Value to assign to name.public boolean equals(BuddyGroup b)
b - the buddy grouppublic boolean equals(Object b)
equals method here.equals in interface Collectionequals in interface Listequals in class AbstractListb - an Object valueboolean valuepublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class AbstractList