|
|||||||||
| 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.Template
The class Template allows to stock a list of dsname
Vector, Serialized Form| Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData, serialVersionUID |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
Template()
Constructs an empty Template so that its internal data array has size 10 and its standard capacity increment is zero. |
|
Template(java.util.Collection c)
Constructs a Template containing the ds-name of the specified collection, in the order they are returned by the collection's iterator. |
|
Template(int initialCapacity)
Constructs an empty Template with the specified initial capacity and with its capacity increment equal to zero. param initialCapacity the initial capacity of the Template. |
|
Template(int initialCapacity,
int capacityIncrement)
Constructs an empty Template with the specified initial capacity and capacity increment. |
|
| Method Summary | |
Template |
cloneTemplate()
Returns a clone of this Template. return Template |
java.lang.String |
dsNameAt(int index)
Returns the component at the specified index. |
java.lang.String |
firstDsName()
Returns the first component (the item at index 0) of this Template. |
java.lang.String |
getDsName(int index)
Returns the ds-name at the specified position in this Template. |
java.lang.String |
lastDsName()
Returns the last component of the Template. |
java.lang.String |
removeDsName(int index)
Removes the ds-name at the specified position in this Template. |
java.lang.String |
setDsName(int index,
java.lang.String dsName)
Replaces the ds-name at the specified position in this Template with the specified ds-name. |
java.lang.String |
toString()
toString return a string representation of this template |
java.lang.String[] |
toTempaleArray()
Returns an array containing all of the ds-name in this Template in the correct order. |
java.lang.String[] |
toTemplateArray(java.lang.String[] a)
Returns an array containing all of the ds-name in this Template 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, 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 Template()
public Template(java.util.Collection c)
c - the collection whose RoundRobinDataBaseItfs are to be placed into this Template.
public Template(int initialCapacity)
throws java.lang.IllegalArgumentException
public Template(int initialCapacity,
int capacityIncrement)
throws java.lang.IllegalArgumentException
initialCapacity - the initial capacity of the Template.capacityIncrement - the amount by which the capacity is increased when the Template overflows| Method Detail |
public Template cloneTemplate()
public java.lang.String dsNameAt(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - an index into this Template.
public java.lang.String firstDsName()
throws java.util.NoSuchElementException
public java.lang.String getDsName(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - index of ds-name to return.
public java.lang.String lastDsName()
throws java.util.NoSuchElementException
public java.lang.String removeDsName(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - index of ds-name to remove
public java.lang.String setDsName(int index,
java.lang.String dsName)
throws java.lang.ArrayIndexOutOfBoundsException,
java.lang.IllegalArgumentException
index - index of ds-name to replace.dsName - RoundRobinDataBase to be stored at the specified position.public java.lang.String toString()
toString in class java.util.Vectorpublic java.lang.String[] toTempaleArray()
public java.lang.String[] toTemplateArray(java.lang.String[] a)
throws java.lang.ArrayStoreException
a - the array into which the ds-name of the Template 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 | ||||||||