com.isti.util
Class IstiTimeObjectCache.VectorWithCount

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by com.isti.util.IstiTimeObjectCache.VectorWithCount
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
Enclosing class:
IstiTimeObjectCache

public static class IstiTimeObjectCache.VectorWithCount
extends java.util.Vector

Subclass of Vector that also holds a 'count' value.

See Also:
Serialized Form

Field Summary
protected  int count
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
IstiTimeObjectCache.VectorWithCount()
          Constructs an empty VectorWithCount.
IstiTimeObjectCache.VectorWithCount(java.util.Collection cObj)
          Constructs a VectorWithCount containing the elements of the specified collection, in the order they are returned by the collection's iterator.
IstiTimeObjectCache.VectorWithCount(java.util.Collection cObj, int count)
          Constructs a VectorWithCount containing the elements of the specified collection, in the order they are returned by the collection's iterator.
 
Method Summary
 void addToCount(int val)
          Adds to the count value.
 int getCount()
          Returns the count value.
 void setCount(int count)
          Sets the count value.
 
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
 

Field Detail

count

protected int count
Constructor Detail

IstiTimeObjectCache.VectorWithCount

public IstiTimeObjectCache.VectorWithCount()
Constructs an empty VectorWithCount.


IstiTimeObjectCache.VectorWithCount

public IstiTimeObjectCache.VectorWithCount(java.util.Collection cObj)
Constructs a VectorWithCount containing the elements of the specified collection, in the order they are returned by the collection's iterator.

Parameters:
cObj - the collection whose elements are to be placed into this VectorWithCount.

IstiTimeObjectCache.VectorWithCount

public IstiTimeObjectCache.VectorWithCount(java.util.Collection cObj,
                                           int count)
Constructs a VectorWithCount containing the elements of the specified collection, in the order they are returned by the collection's iterator.

Parameters:
cObj - the collection whose elements are to be placed into this VectorWithCount.
count - the count value to use.
Method Detail

setCount

public void setCount(int count)
Sets the count value.

Parameters:
count - the count value to use.

addToCount

public void addToCount(int val)
Adds to the count value.

Parameters:
val - the value to add.

getCount

public int getCount()
Returns the count value.

Returns:
The count value, or 0 if none set.