rrdService.util
Class RoundRobinLibraryContainer

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

public class RoundRobinLibraryContainer
extends java.util.Vector

The class RoundRobinLibraryContainer allows to transmits a Container of RoundRobinLibrary to client

Version:
1.0 date : 15/07/2001
Author:
Pellier
See Also:
RoundRobinLibraryContainer, RoundRobinLibrary, Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
RoundRobinLibraryContainer()
          Constructs an empty RoundRobinLibraryContainer so that its internal data array has size 10 and its standard capacity increment is zero.
RoundRobinLibraryContainer(java.util.Collection c)
          Constructs a RoundRobinLibraryContainer containing the RoundRobinLibraryItf of the specified collection, in the order they are returned by the collection's iterator.
RoundRobinLibraryContainer(int initialCapacity)
          Constructs an empty RoundRobinLibraryContainer with the specified initial capacity and with its capacity increment equal to zero. param initialCapacity the initial capacity of the RoundRobinLibraryContainer.
RoundRobinLibraryContainer(int initialCapacity, int capacityIncrement)
          Constructs an empty RoundRobinLibraryContainer with the specified initial capacity and capacity increment.
 
Method Summary
 RoundRobinLibraryContainer cloneRoundRobinLibraryContainer()
          Returns a clone of this RoundRobinLibraryContainer. return RoundRobinLibraryContainer
 RoundRobinLibraryItf firstRoundRobinLibrary()
          Returns the first component (the item at index 0) of this RoundRobinLibraryContainer.
 RoundRobinLibraryItf getRoundRobinLibrary(int index)
          Returns the RoundRobinLibraryItf at the specified position in this RoundRobinLibraryContainer.
 RoundRobinLibraryItf lastRoundRobinLibrary()
          Returns the last component of the RoundRobinLibraryContainer.
 RoundRobinLibraryItf removeRoundRobinLibrary(int index)
          Removes the RoundRobinLibraryItf at the specified position in this RoundRobinLibraryContainer.
 RoundRobinLibraryItf roundRobinLibraryAt(int index)
          Returns the component at the specified index.
 RoundRobinLibraryItf setRoundRobinLibrary(int index, RoundRobinLibraryItf lib)
          Replaces the RoundRobinLibraryItf at the specified position in this RoundRobinLibraryContainer with the specified RoundRobinLibraryItf.
 RoundRobinLibraryItf[] toRoundRobinLibraryArray()
          Returns an array containing all of the RoundRobinLibraryItf in this RoundRobinLibraryContainer in the correct order.
 RoundRobinLibraryItf[] toRoundRobinLibraryArray(RoundRobinLibraryItf[] a)
          Returns an array containing all of the RoundRobinLibraryItf in this RoundRobinLibraryContainer 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

RoundRobinLibraryContainer

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

RoundRobinLibraryContainer

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

RoundRobinLibraryContainer

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

RoundRobinLibraryContainer

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

cloneRoundRobinLibraryContainer

public RoundRobinLibraryContainer cloneRoundRobinLibraryContainer()
Returns a clone of this RoundRobinLibraryContainer. return RoundRobinLibraryContainer

firstRoundRobinLibrary

public RoundRobinLibraryItf firstRoundRobinLibrary()
                                            throws java.util.NoSuchElementException
Returns the first component (the item at index 0) of this RoundRobinLibraryContainer.
Returns:
RoundRobinLibraryItf

getRoundRobinLibrary

public RoundRobinLibraryItf getRoundRobinLibrary(int index)
                                          throws java.lang.ArrayIndexOutOfBoundsException
Returns the RoundRobinLibraryItf at the specified position in this RoundRobinLibraryContainer.
Parameters:
index - index of RoundRobinLibraryItf to return.
Returns:
RoundRobinLibraryItf

lastRoundRobinLibrary

public RoundRobinLibraryItf lastRoundRobinLibrary()
                                           throws java.util.NoSuchElementException
Returns the last component of the RoundRobinLibraryContainer.
Returns:
RoundRobinLibraryItf

removeRoundRobinLibrary

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

roundRobinLibraryAt

public RoundRobinLibraryItf roundRobinLibraryAt(int index)
                                         throws java.lang.ArrayIndexOutOfBoundsException
Returns the component at the specified index.
Parameters:
index - an index into this RoundRobinLibraryContainer.
Returns:
RoundRobinLibraryItf

setRoundRobinLibrary

public RoundRobinLibraryItf setRoundRobinLibrary(int index,
                                                 RoundRobinLibraryItf lib)
                                          throws java.lang.ArrayIndexOutOfBoundsException,
                                                 java.lang.IllegalArgumentException
Replaces the RoundRobinLibraryItf at the specified position in this RoundRobinLibraryContainer with the specified RoundRobinLibraryItf.
Parameters:
index - index of RoundRobinLibraryItf to replace.
lib - RoundRobinLibrary to be stored at the specified position.
Returns:
RoundRobinLibraryItf

toRoundRobinLibraryArray

public RoundRobinLibraryItf[] toRoundRobinLibraryArray()
Returns an array containing all of the RoundRobinLibraryItf in this RoundRobinLibraryContainer in the correct order.
Returns:
RoundRobinLibraryItf

toRoundRobinLibraryArray

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

Copyright 1885-2001 FIRMENICH SA, Geneva

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