public class Groups extends Object implements Serializable
| Constructor and Description | 
|---|
Groups()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addGroup(Group vGroup)  | 
void | 
addGroup(int index,
        Group vGroup)  | 
Enumeration<Group> | 
enumerateGroup()
Method enumerateGroup. 
 | 
boolean | 
equals(Object obj)
Overrides the java.lang.Object.equals method. 
 | 
Group[] | 
getGroup()
Method getGroup.Returns the contents of the collection in an
 Array. 
 | 
Group | 
getGroup(int index)
Method getGroup. 
 | 
List<Group> | 
getGroupCollection()
Method getGroupCollection.Returns a reference to
 '_groupList'. 
 | 
int | 
getGroupCount()
Method getGroupCount. 
 | 
int | 
hashCode()
Overrides the java.lang.Object.hashCode method. 
 | 
Iterator<Group> | 
iterateGroup()
Method iterateGroup. 
 | 
void | 
removeAllGroup()  | 
boolean | 
removeGroup(Group vGroup)
Method removeGroup. 
 | 
Group | 
removeGroupAt(int index)
Method removeGroupAt. 
 | 
void | 
setGroup(Group[] vGroupArray)  | 
void | 
setGroup(int index,
        Group vGroup)  | 
void | 
setGroup(List<Group> vGroupList)
Sets the value of '_groupList' by copying the given Vector. 
 | 
void | 
setGroupCollection(List<Group> groupList)
Deprecated.   
 | 
public void addGroup(Group vGroup) throws IndexOutOfBoundsException
vGroup - IndexOutOfBoundsException - if the index
 given is outside the bounds of the collectionpublic void addGroup(int index,
                     Group vGroup)
              throws IndexOutOfBoundsException
index - vGroup - IndexOutOfBoundsException - if the index
 given is outside the bounds of the collectionpublic Enumeration<Group> enumerateGroup()
public boolean equals(Object obj)
public Group getGroup(int index) throws IndexOutOfBoundsException
index - IndexOutOfBoundsException - if the index
 given is outside the bounds of the collectionpublic Group[] getGroup()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Group> getGroupCollection()
public int getGroupCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public Iterator<Group> iterateGroup()
public void removeAllGroup()
public boolean removeGroup(Group vGroup)
vGroup - public Group removeGroupAt(int index)
index - public void setGroup(int index,
                     Group vGroup)
              throws IndexOutOfBoundsException
index - vGroup - IndexOutOfBoundsException - if the index
 given is outside the bounds of the collectionpublic void setGroup(Group[] vGroupArray)
vGroupArray - public void setGroup(List<Group> vGroupList)
vGroupList - the Vector to copy.Copyright © 2020. All rights reserved.