rrdService.util
Class CdpPrepContainer

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

public class CdpPrepContainer
extends java.util.Vector

The class CdpPrepContainer allows to stock a list of CdpPrep

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

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

CdpPrepContainer

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

CdpPrepContainer

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

CdpPrepContainer

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

CdpPrepContainer

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

cdpPrepAt

public CdpPrep cdpPrepAt(int index)
                  throws java.lang.ArrayIndexOutOfBoundsException
Returns the component at the specified index.
Parameters:
index - an index into this CdpPrepContainer.
Returns:
CdpPrep

cloneCdpPrepContainer

public CdpPrepContainer cloneCdpPrepContainer()
Returns a clone of this CdpPrepContainer. return CdpPrepContainer

firstCdpPrep

public CdpPrep firstCdpPrep()
                     throws java.util.NoSuchElementException
Returns the first component (the item at index 0) of this CdpPrepContainer.
Returns:
CdpPrep

getCdpPrep

public CdpPrep getCdpPrep(int index)
                   throws java.lang.ArrayIndexOutOfBoundsException
Returns the CdpPrep at the specified position in this CdpPrepContainer.
Parameters:
index - index of CdpPrep to return.
Returns:
CdpPrep

lastCdpPrep

public CdpPrep lastCdpPrep()
                    throws java.util.NoSuchElementException
Returns the last component of the CdpPrepContainer.
Returns:
CdpPrep

removeCdpPrep

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

setCdpPrep

public CdpPrep setCdpPrep(int index,
                          CdpPrep cdpPrep)
                   throws java.lang.ArrayIndexOutOfBoundsException,
                          java.lang.IllegalArgumentException
Replaces the CdpPrep at the specified position in this CdpPrepContainer with the specified CdpPrep.
Parameters:
index - index of CdpPrep to replace.
lib - RoundRobinDataBase to be stored at the specified position.
Returns:
CdpPrep

toCdpPrepArray

public CdpPrep[] toCdpPrepArray()
Returns an array containing all of the CdpPrep in this CdpPrepContainer in the correct order.
Returns:
CdpPrep

toCdpPrepArray

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

Copyright 1885-2001 FIRMENICH SA, Geneva

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