org.npsnet.xrti
Class XRTIAttributeSetRegionSetPairList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended byorg.npsnet.xrti.XRTIAttributeSetRegionSetPairList
All Implemented Interfaces:
AttributeSetRegionSetPairList, java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class XRTIAttributeSetRegionSetPairList
extends java.util.Vector
implements AttributeSetRegionSetPairList

This packages the attributes supplied to the RTI for various DDM services with the regions to be used with the attributes. Elements are AttributeSetRegionSetPairs. All operations are required, none optional. Methods add, addAll, and set should throw IllegalArgumentException to enforce type of elements.

Author:
Andrzej Kapolka
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.AbstractList
 
Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
protected XRTIAttributeSetRegionSetPairList(int capacity)
          Constructor.
 
Method Summary
 void add(int index, java.lang.Object element)
          Adds an element to this list at the specified location.
 boolean add(java.lang.Object element)
          Adds an element to the end of this list.
 boolean addAll(java.util.Collection c)
          Adds the elements contained in the specified collection to this list.
 boolean addAll(int index, java.util.Collection c)
          Adds the elements contained in the specified collection to this list at the specified location.
 java.lang.Object set(int index, java.lang.Object element)
          Sets the element at the specified index.
 
Methods inherited from class java.util.Vector
addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, 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, wait, wait, wait
 
Methods inherited from interface java.util.List
clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, size, subList, toArray, toArray
 

Constructor Detail

XRTIAttributeSetRegionSetPairList

protected XRTIAttributeSetRegionSetPairList(int capacity)
Constructor.

Parameters:
capacity - the initial list capacity
Method Detail

add

public void add(int index,
                java.lang.Object element)
Adds an element to this list at the specified location.

Specified by:
add in interface java.util.List
Parameters:
index - the location at which to add the element
element - the element to add
Throws:
java.lang.IllegalArgumentException - if the element is not an AttributeSetRegionSetPair

add

public boolean add(java.lang.Object element)
Adds an element to the end of this list.

Specified by:
add in interface java.util.List
Parameters:
element - the element to add
Returns:
true, indicating that the list has changed
Throws:
java.lang.IllegalArgumentException - if the element is not an AttributeSetRegionSetPair

addAll

public boolean addAll(java.util.Collection c)
Adds the elements contained in the specified collection to this list.

Specified by:
addAll in interface java.util.List
Parameters:
c - the collection containing the elements to add
Returns:
true if the list changed as a result of this method call
Throws:
java.lang.IllegalArgumentException - if the collection is not an AttributeSetRegionSetPairList

addAll

public boolean addAll(int index,
                      java.util.Collection c)
Adds the elements contained in the specified collection to this list at the specified location.

Specified by:
addAll in interface java.util.List
Parameters:
c - the collection containing the elements to add
index - the location at which to add the elements
Throws:
java.lang.IllegalArgumentException - if the collection is not an AttributeSetRegionSetPairList

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Sets the element at the specified index.

Specified by:
set in interface java.util.List
Parameters:
index - the index of the element to set
element - the new value for that index
Returns:
the element previously stored at that index
Throws:
java.lang.IllegalArgumentException - if the element is not an AttributeSetRegionSetPair