com.mccrory.scott.spumoni
Class StatsValueList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--com.mccrory.scott.spumoni.StatsValueList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class StatsValueList
extends java.util.Vector

StatsValueList is a collection of StatsValue objects. Includes methods used for operating on that group of objects.

Version:
CVS $Id: StatsValueList.java,v 1.8 2002/08/04 22:04:53 smccrory Exp $
Author:
Scott McCrory.

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
StatsValueList()
          Basic StatsValueList constructor.
StatsValueList(int initialCapacity)
          StatsValueList constructor with preset minimum size.
StatsValueList(int initialCapacity, int capacityIncrement)
          StatsValueList constructor with preset minimum size and capacity increment.
StatsValueList(StatsValue sVal)
          Convenience constructor for creating a new StatsValueList and populating it with a single StatsValue.
 
Method Summary
 java.util.Vector getOids()
          Returns a vector of all of the OIDs in the contained StatsValues
 java.lang.String getValueByOid(java.lang.String oid)
          Returns a value String corresponding to the specified OID.
 void unsetValues()
          Unsets all of the values.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

StatsValueList

public StatsValueList()
Basic StatsValueList constructor.


StatsValueList

public StatsValueList(int initialCapacity)
StatsValueList constructor with preset minimum size.

Parameters:
initialCapacity - Initial capacity

StatsValueList

public StatsValueList(int initialCapacity,
                      int capacityIncrement)
StatsValueList constructor with preset minimum size and capacity increment.

Parameters:
initialCapacity - Initial capacity
capacityIncrement - Capacity increment

StatsValueList

public StatsValueList(StatsValue sVal)
Convenience constructor for creating a new StatsValueList and populating it with a single StatsValue.

Parameters:
sVal - The StatsValue which will be immediately added
Method Detail

getOids

public java.util.Vector getOids()
Returns a vector of all of the OIDs in the contained StatsValues

Returns:
A vector of all of the OIDs in the contained StatsValues

getValueByOid

public java.lang.String getValueByOid(java.lang.String oid)
                               throws java.util.NoSuchElementException
Returns a value String corresponding to the specified OID.

Parameters:
oid - java.lang.String
Returns:
java.lang.String
Throws:
java.util.NoSuchElementException - if the OID isn't found.

unsetValues

public void unsetValues()
Unsets all of the values. Typically done just before another round of stats collection.



Copyright © 2002 Scott McCrory as part of the Spumoni project. All Rights Reserved.