Class Groups
- java.lang.Object
-
- org.opennms.netmgt.config.xmpDataCollection.Groups
-
- All Implemented Interfaces:
Serializable
public class Groups extends Object implements Serializable
MIB object groups- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Groups()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddGroup(int index, Group vGroup)voidaddGroup(Group vGroup)Enumeration<Group>enumerateGroup()Method enumerateGroup.booleanequals(Object obj)Overrides the java.lang.Object.equals method.Group[]getGroup()Method getGroup.Returns the contents of the collection in an Array.GroupgetGroup(int index)Method getGroup.List<Group>getGroupCollection()Method getGroupCollection.Returns a reference to '_groupList'.intgetGroupCount()Method getGroupCount.inthashCode()Overrides the java.lang.Object.hashCode method.Iterator<Group>iterateGroup()Method iterateGroup.voidremoveAllGroup()booleanremoveGroup(Group vGroup)Method removeGroup.GroupremoveGroupAt(int index)Method removeGroupAt.voidsetGroup(int index, Group vGroup)voidsetGroup(List<Group> vGroupList)Sets the value of '_groupList' by copying the given Vector.voidsetGroup(Group[] vGroupArray)voidsetGroupCollection(List<Group> groupList)Deprecated.
-
-
-
Method Detail
-
addGroup
public void addGroup(Group vGroup) throws IndexOutOfBoundsException
- Parameters:
vGroup-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
addGroup
public void addGroup(int index, Group vGroup) throws IndexOutOfBoundsException- Parameters:
index-vGroup-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
enumerateGroup
public Enumeration<Group> enumerateGroup()
Method enumerateGroup.- Returns:
- an Enumeration over all possible elements of this collection
-
equals
public boolean equals(Object obj)
Overrides the java.lang.Object.equals method.
-
getGroup
public Group getGroup(int index) throws IndexOutOfBoundsException
Method getGroup.- Parameters:
index-- Returns:
- the value of the org.opennms.netmgt.config.xmpDataCollection.Group at the given index
- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
getGroup
public Group[] getGroup()
Method getGroup.Returns the contents of the collection in an Array.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.
- Returns:
- this collection as an Array
-
getGroupCollection
public List<Group> getGroupCollection()
Method getGroupCollection.Returns a reference to '_groupList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getGroupCount
public int getGroupCount()
Method getGroupCount.- Returns:
- the size of this collection
-
hashCode
public int hashCode()
Overrides the java.lang.Object.hashCode method.The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
-
iterateGroup
public Iterator<Group> iterateGroup()
Method iterateGroup.- Returns:
- an Iterator over all possible elements in this collection
-
removeAllGroup
public void removeAllGroup()
-
removeGroup
public boolean removeGroup(Group vGroup)
Method removeGroup.- Parameters:
vGroup-- Returns:
- true if the object was removed from the collection.
-
removeGroupAt
public Group removeGroupAt(int index)
Method removeGroupAt.- Parameters:
index-- Returns:
- the element removed from the collection
-
setGroup
public void setGroup(int index, Group vGroup) throws IndexOutOfBoundsException- Parameters:
index-vGroup-- Throws:
IndexOutOfBoundsException- if the index given is outside the bounds of the collection
-
setGroup
public void setGroup(Group[] vGroupArray)
- Parameters:
vGroupArray-
-
setGroup
public void setGroup(List<Group> vGroupList)
Sets the value of '_groupList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vGroupList- the Vector to copy.
-
-