com.wilko.jaim
Class Group

java.lang.Object
  |
  +--com.wilko.jaim.Group

public class Group
extends java.lang.Object

This is a logical user group. It holds a set of users.

Author:
Brett Humphreys

Constructor Summary
Group(java.lang.String name)
          This constructor sets the name of the group
 
Method Summary
 void addBuddy(Buddy buddy)
          This method adds a buddy to the end of the group
 void addBuddy(Buddy buddy, int pos)
          This method adds a buddy to the specified location in the group If the specified location is beyond the end of the group, then the buddy is added to the end of the group
 java.util.Enumeration enumerateBuddies()
          This method returns the buddies in this group
 java.util.Collection getBuddies()
          This method returns the buddies in this group
 int getBuddyCount()
          This method returns the number of buddies in this group
 java.lang.String getName()
          This method gets the group name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Group

public Group(java.lang.String name)
This constructor sets the name of the group

Parameters:
name - the group name
Method Detail

addBuddy

public void addBuddy(Buddy buddy)
This method adds a buddy to the end of the group

Parameters:
buddy - The buddy object to associate with this group

addBuddy

public void addBuddy(Buddy buddy,
                     int pos)
This method adds a buddy to the specified location in the group If the specified location is beyond the end of the group, then the buddy is added to the end of the group

Parameters:
buddy - The buddy object to associate with this group
pos - the position to add the buddy

getName

public java.lang.String getName()
This method gets the group name

Returns:
the group name

enumerateBuddies

public java.util.Enumeration enumerateBuddies()
This method returns the buddies in this group

Returns:
an Enumeration of Buddy objects

getBuddyCount

public int getBuddyCount()
This method returns the number of buddies in this group

Returns:
buddy count

getBuddies

public java.util.Collection getBuddies()
This method returns the buddies in this group

Returns:
a Collection of Buddy objects

jaimlib.sourceforge.net