|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--rrdService.util.DataContainer
The class DataContainer allows to stock a list of data source
Vector
, Serialized FormFields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData, serialVersionUID |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
DataContainer()
Constructs an empty DataContainer so that its internal data array has size 10 and its standard capacity increment is zero. |
|
DataContainer(java.util.Collection c)
Constructs a DataContainer containing the Data of the specified collection, in the order they are returned by the collection's iterator. |
|
DataContainer(int initialCapacity)
Constructs an empty DataContainer with the specified initial capacity and with its capacity increment equal to zero. param initialCapacity the initial capacity of the DataContainer. |
|
DataContainer(int initialCapacity,
int capacityIncrement)
Constructs an empty DataContainer with the specified initial capacity and capacity increment. |
Method Summary | |
DataContainer |
cloneDataContainer()
Returns a clone of this DataContainer. return DataContainer |
Data |
dataAt(int index)
Returns the component at the specified index. |
Data |
firstData()
Returns the first component (the item at index 0) of this DataContainer. |
Data |
getData(int index)
Returns the Data at the specified position in this DataContainer. |
Data |
lastDatae()
Returns the last component of the DataContainer. |
Data |
removeData(int index)
Removes the Data at the specified position in this DataContainer. |
Data |
setData(int index,
Data data)
Replaces the Data at the specified position in this DataContainer with the specified Data. |
Data[] |
toDataArray()
Returns an array containing all of the Data in this DataContainer in the correct order. |
Data[] |
toDataArray(Data[] a)
Returns an array containing all of the Data in this DataContainer 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 |
|
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public DataContainer()
public DataContainer(java.util.Collection c)
c
- the collection whose DataSources are to be placed into this DataContainer.public DataContainer(int initialCapacity) throws java.lang.IllegalArgumentException
public DataContainer(int initialCapacity, int capacityIncrement) throws java.lang.IllegalArgumentException
initialCapacity
- the initial capacity of the DataContainer.capacityIncrement
- the amount by which the capacity is increased when the DataContainer overflowsMethod Detail |
public DataContainer cloneDataContainer()
public Data dataAt(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- an index into this DataContainer.public Data firstData() throws java.util.NoSuchElementException
public Data getData(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- index of Data to return.public Data lastDatae() throws java.util.NoSuchElementException
public Data removeData(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- index of Data to removepublic Data setData(int index, Data data) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException
index
- index of Data to replace.data
- the data to be stored at the specified position.public Data[] toDataArray()
public Data[] toDataArray(Data[] a) throws java.lang.ArrayStoreException
a
- the array into which the Data of the DataContainer are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.
|
Copyright 1885-2001 FIRMENICH SA, Geneva | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |