rrdService.util
Class RoundRobinDataBaseContainer

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

public class RoundRobinDataBaseContainer
extends java.util.Vector

The class RoundRobinDataBaseContainer allows to transmits a Container of RoundRobinDataBase to client

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

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
RoundRobinDataBaseContainer()
          Constructs an empty RoundRobinDataBaseContainer so that its internal data array has size 10 and its standard capacity increment is zero.
RoundRobinDataBaseContainer(java.util.Collection c)
          Constructs a RoundRobinDataBaseContainer containing the RoundRobinDataBaseItf of the specified collection, in the order they are returned by the collection's iterator.
RoundRobinDataBaseContainer(int initialCapacity)
          Constructs an empty RoundRobinDataBaseContainer with the specified initial capacity and with its capacity increment equal to zero. param initialCapacity the initial capacity of the RoundRobinDataBaseContainer.
RoundRobinDataBaseContainer(int initialCapacity, int capacityIncrement)
          Constructs an empty RoundRobinDataBaseContainer with the specified initial capacity and capacity increment.
 
Method Summary
 RoundRobinDataBaseContainer cloneRoundRobinDataBaseContainer()
          Returns a clone of this RoundRobinDataBaseContainer. return RoundRobinDataBaseContainer
 RoundRobinDataBaseItf firstRoundRobinDataBase()
          Returns the first component (the item at index 0) of this RoundRobinDataBaseContainer.
 RoundRobinDataBaseItf getRoundRobinDataBase(int index)
          Returns the RoundRobinDataBaseItf at the specified position in this RoundRobinDataBaseContainer.
 RoundRobinDataBaseItf lastRoundRobinDataBase()
          Returns the last component of the RoundRobinDataBaseContainer.
 RoundRobinDataBaseItf removeRoundRobinDataBase(int index)
          Removes the RoundRobinDataBaseItf at the specified position in this RoundRobinDataBaseContainer.
 RoundRobinDataBaseItf roundRobinDataBaseAt(int index)
          Returns the component at the specified index.
 RoundRobinDataBaseItf setRoundRobinDataBase(int index, RoundRobinDataBaseItf rrd)
          Replaces the RoundRobinDataBaseItf at the specified position in this RoundRobinDataBaseContainer with the specified RoundRobinDataBaseItf.
 RoundRobinDataBaseItf[] toRoundRobinDataBaseArray()
          Returns an array containing all of the RoundRobinDataBaseItf in this RoundRobinDataBaseContainer in the correct order.
 RoundRobinDataBaseItf[] toRoundRobinDataBaseArray(RoundRobinDataBaseItf[] a)
          Returns an array containing all of the RoundRobinDataBaseItf in this RoundRobinDataBaseContainer in the correct order.
 
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, toString, 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

RoundRobinDataBaseContainer

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

RoundRobinDataBaseContainer

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

RoundRobinDataBaseContainer

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

RoundRobinDataBaseContainer

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

cloneRoundRobinDataBaseContainer

public RoundRobinDataBaseContainer cloneRoundRobinDataBaseContainer()
Returns a clone of this RoundRobinDataBaseContainer. return RoundRobinDataBaseContainer

firstRoundRobinDataBase

public RoundRobinDataBaseItf firstRoundRobinDataBase()
                                              throws java.util.NoSuchElementException
Returns the first component (the item at index 0) of this RoundRobinDataBaseContainer.
Returns:
RoundRobinDataBaseItf

getRoundRobinDataBase

public RoundRobinDataBaseItf getRoundRobinDataBase(int index)
                                            throws java.lang.ArrayIndexOutOfBoundsException
Returns the RoundRobinDataBaseItf at the specified position in this RoundRobinDataBaseContainer.
Parameters:
index - index of RoundRobinDataBaseItf to return.
Returns:
RoundRobinDataBaseItf

lastRoundRobinDataBase

public RoundRobinDataBaseItf lastRoundRobinDataBase()
                                             throws java.util.NoSuchElementException
Returns the last component of the RoundRobinDataBaseContainer.
Returns:
RoundRobinDataBaseItf

removeRoundRobinDataBase

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

roundRobinDataBaseAt

public RoundRobinDataBaseItf roundRobinDataBaseAt(int index)
                                           throws java.lang.ArrayIndexOutOfBoundsException
Returns the component at the specified index.
Parameters:
index - an index into this RoundRobinDataBaseContainer.
Returns:
RoundRobinDataBaseItf

setRoundRobinDataBase

public RoundRobinDataBaseItf setRoundRobinDataBase(int index,
                                                   RoundRobinDataBaseItf rrd)
                                            throws java.lang.ArrayIndexOutOfBoundsException,
                                                   java.lang.IllegalArgumentException
Replaces the RoundRobinDataBaseItf at the specified position in this RoundRobinDataBaseContainer with the specified RoundRobinDataBaseItf.
Parameters:
index - index of RoundRobinDataBaseItf to replace.
rrd - RoundRobinDataBase to be stored at the specified position.
Returns:
RoundRobinDataBaseItf

toRoundRobinDataBaseArray

public RoundRobinDataBaseItf[] toRoundRobinDataBaseArray()
Returns an array containing all of the RoundRobinDataBaseItf in this RoundRobinDataBaseContainer in the correct order.
Returns:
RoundRobinDataBaseItf

toRoundRobinDataBaseArray

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

Copyright 1885-2001 FIRMENICH SA, Geneva

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