rrdService.util
Class RoundRobinArchiveContainer

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--rrdService.util.RoundRobinArchiveContainer
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class RoundRobinArchiveContainer
extends java.util.Vector

The class RoundRobinArchiveContainer allows to stock a list of RoundRobinArchive

Version:
1.0 date : 15/07/2001
Author:
Damien Pellier
See Also:
RoundRobinArchiveContainer, RoundRobinArchive, Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
RoundRobinArchiveContainer()
          Constructs an empty RoundRobinArchiveContainerso that its internal data array has size 10 and its standard capacity increment is zero.
RoundRobinArchiveContainer(java.util.Collection c)
          Constructs a RoundRobinArchiveContainercontaining the RoundRobinArchive of the specified collection, in the order they are returned by the collection's iterator.
RoundRobinArchiveContainer(int initialCapacity)
          Constructs an empty RoundRobinArchiveContainerwith the specified initial capacity and with its capacity increment equal to zero. param initialCapacity the initial capacity of the RoundRobinArchiveContainer.
RoundRobinArchiveContainer(int initialCapacity, int capacityIncrement)
          Constructs an empty RoundRobinArchiveContainerwith the specified initial capacity and capacity increment.
 
Method Summary
 RoundRobinArchiveContainer cloneRoundRobinArchiveContainer()
          Returns a clone of this RoundRobinArchiveContainer. return RoundRobinArchiveContainer
 RoundRobinArchive firstRoundRobinArchive()
          Returns the first component (the item at index 0) of this RoundRobinArchiveContainer.
 RoundRobinArchive getRoundRobinArchive(int index)
          Returns the RoundRobinArchive at the specified position in this RoundRobinArchiveContainer.
 RoundRobinArchive lastRoundRobinArchive()
          Returns the last component of the RoundRobinArchiveContainer.
 RoundRobinArchive removeRoundRobinArchive(int index)
          Removes the RoundRobinArchive at the specified position in this RoundRobinArchiveContainer.
 RoundRobinArchive roundRobinArchiveAt(int index)
          Returns the component at the specified index.
 RoundRobinArchive setRoundRobinArchive(int index, RoundRobinArchive rra)
          Replaces the RoundRobinArchive at the specified position in this RoundRobinArchiveContainerwith the specified RoundRobinArchive.
 RoundRobinArchive[] toRoundRobinArchiveArray()
          Returns an array containing all of the RoundRobinArchive in this RoundRobinArchiveContainerin the correct order.
 RoundRobinArchive[] toRoundRobinArchiveArray(RoundRobinArchive[] a)
          Returns an array containing all of the RoundRobinArchive in this RoundRobinArchiveContainerin the correct order.
 java.lang.String toString()
          toString return a string representation of this RoundRobinArchiveContainer
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, ensureCapacityHelper, 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, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

RoundRobinArchiveContainer

public RoundRobinArchiveContainer()
Constructs an empty RoundRobinArchiveContainerso that its internal data array has size 10 and its standard capacity increment is zero.

RoundRobinArchiveContainer

public RoundRobinArchiveContainer(java.util.Collection c)
Constructs a RoundRobinArchiveContainercontaining the RoundRobinArchive of the specified collection, in the order they are returned by the collection's iterator.
Parameters:
c - the collection whose RoundRobinArchives are to be placed into this RoundRobinArchiveContainer.

RoundRobinArchiveContainer

public RoundRobinArchiveContainer(int initialCapacity)
                           throws java.lang.IllegalArgumentException
Constructs an empty RoundRobinArchiveContainerwith the specified initial capacity and with its capacity increment equal to zero. param initialCapacity the initial capacity of the RoundRobinArchiveContainer.

RoundRobinArchiveContainer

public RoundRobinArchiveContainer(int initialCapacity,
                                  int capacityIncrement)
                           throws java.lang.IllegalArgumentException
Constructs an empty RoundRobinArchiveContainerwith the specified initial capacity and capacity increment.
Parameters:
initialCapacity - the initial capacity of the RoundRobinArchiveContainer.
capacityIncrement - the amount by which the capacity is increased when the RoundRobinArchiveContaineroverflows
Method Detail

cloneRoundRobinArchiveContainer

public RoundRobinArchiveContainer cloneRoundRobinArchiveContainer()
Returns a clone of this RoundRobinArchiveContainer. return RoundRobinArchiveContainer

firstRoundRobinArchive

public RoundRobinArchive firstRoundRobinArchive()
                                         throws java.util.NoSuchElementException
Returns the first component (the item at index 0) of this RoundRobinArchiveContainer.
Returns:
RoundRobinArchive

getRoundRobinArchive

public RoundRobinArchive getRoundRobinArchive(int index)
                                       throws java.lang.ArrayIndexOutOfBoundsException
Returns the RoundRobinArchive at the specified position in this RoundRobinArchiveContainer.
Parameters:
index - index of RoundRobinArchive to return.
Returns:
RoundRobinArchive

lastRoundRobinArchive

public RoundRobinArchive lastRoundRobinArchive()
                                        throws java.util.NoSuchElementException
Returns the last component of the RoundRobinArchiveContainer.
Returns:
RoundRobinArchive

removeRoundRobinArchive

public RoundRobinArchive removeRoundRobinArchive(int index)
                                          throws java.lang.ArrayIndexOutOfBoundsException
Removes the RoundRobinArchive at the specified position in this RoundRobinArchiveContainer.
Parameters:
index - index of RoundRobinArchive to remove
Returns:
RoundRobinArchive

roundRobinArchiveAt

public RoundRobinArchive roundRobinArchiveAt(int index)
                                      throws java.lang.ArrayIndexOutOfBoundsException
Returns the component at the specified index.
Parameters:
index - an index into this RoundRobinArchiveContainer.
Returns:
RoundRobinArchive

setRoundRobinArchive

public RoundRobinArchive setRoundRobinArchive(int index,
                                              RoundRobinArchive rra)
                                       throws java.lang.ArrayIndexOutOfBoundsException,
                                              java.lang.IllegalArgumentException
Replaces the RoundRobinArchive at the specified position in this RoundRobinArchiveContainerwith the specified RoundRobinArchive.
Parameters:
index - index of RoundRobinArchive to replace.
rra - RoundRobinArchive to be stored at the specified position.
Returns:
RoundRobinArchive

toRoundRobinArchiveArray

public RoundRobinArchive[] toRoundRobinArchiveArray()
Returns an array containing all of the RoundRobinArchive in this RoundRobinArchiveContainerin the correct order.
Returns:
RoundRobinArchive

toRoundRobinArchiveArray

public RoundRobinArchive[] toRoundRobinArchiveArray(RoundRobinArchive[] a)
                                             throws java.lang.ArrayStoreException
Returns an array containing all of the RoundRobinArchive in this RoundRobinArchiveContainerin the correct order.
Parameters:
a - the array into which the RoundRobinArchive of the RoundRobinArchiveContainerare to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.
Returns:
RoundRobinArchive

toString

public java.lang.String toString()
toString return a string representation of this RoundRobinArchiveContainer
Overrides:
toString in class java.util.Vector

Copyright 1885-2001 FIRMENICH SA, Geneva

Submit a bug or feature
Copyright 1885-2001 FIRMENICH SA, Geneva,
All Rights Reserved.