org.walluck.oscar.client
Class BuddyGroup

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byorg.walluck.oscar.client.BuddyGroup
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class BuddyGroup
extends java.util.ArrayList

Buddy groups.

Since:
1.0
Version:
1.0
Author:
David Walluck
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BuddyGroup()
          Creates a new buddy group.
BuddyGroup(java.lang.String name)
          Creates a new buddy group with the given name.
 
Method Summary
 Buddy addBuddy(java.lang.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(java.lang.Object b)
          Describe equals method here.
 Buddy findBuddy(java.lang.String name)
          Describe findBuddy method here.
 java.lang.String getName()
          Get the value of name.
 int hashCode()
          The hascode.
 void setName(java.lang.String name)
          Set the value of name.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

BuddyGroup

public BuddyGroup()
Creates a new buddy group.


BuddyGroup

public BuddyGroup(java.lang.String name)
Creates a new buddy group with the given name.

Parameters:
name - the name
Method Detail

addBuddy

public Buddy addBuddy(java.lang.String name)
Add a buddy to this buddy group with the given name.

Parameters:
name - the buddy name
Returns:
the Buddy added

findBuddy

public Buddy findBuddy(java.lang.String name)
Describe findBuddy method here.

Parameters:
name - a String value
Returns:
a Buddy value

getName

public java.lang.String getName()
Get the value of name.

Returns:
value of name.

setName

public void setName(java.lang.String name)
Set the value of name.

Parameters:
name - Value to assign to name.

equals

public boolean equals(BuddyGroup b)
Tests whether two buddy groups are equal.

Parameters:
b - the buddy group
Returns:
true if equal, false otherwize

equals

public boolean equals(java.lang.Object b)
Describe equals method here.

Parameters:
b - an Object value
Returns:
a boolean value

hashCode

public int hashCode()
The hascode.

Returns:
the hashcode