com.sas.edir
Class TrackedArray
java.lang.Object
|
+--com.sas.edir.SasTrackedObject
|
+--com.sas.edir.TrackedArray
- All Implemented Interfaces:
- TrackedObject, TrackedObjectCollection
- public class TrackedArray
- extends SasTrackedObject
- implements TrackedObjectCollection
A TrackedArray defines an array of tracked objects.
- Version:
- 1.0
- Author:
- SAS
Method Summary |
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object element)
|
void |
clear()
|
java.lang.String |
getDescription()
Returns the collection description. |
java.lang.String |
getName()
Returns the collection name. |
java.util.Iterator |
iterator()
Returns an iteration of tracked objects. |
java.util.ListIterator |
listIterator()
Returns an iteration of tracked objects. |
java.util.ListIterator |
listIterator(java.util.Comparator compare)
Returns a sorted iteration of tracked objects. |
java.lang.Object |
remove(int index)
|
void |
setDescription(java.lang.String description)
Sets the collection description. |
void |
setName(java.lang.String name)
Sets the collection name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrackedArray
public TrackedArray()
- Null constructor.
add
public boolean add(java.lang.Object element)
add
public void add(int index,
java.lang.Object element)
clear
public void clear()
remove
public java.lang.Object remove(int index)
getDescription
public java.lang.String getDescription()
- Returns the collection description.
- Specified by:
getDescription
in interface TrackedObjectCollection
- Returns:
- The description or null if one does not exist.
setDescription
public void setDescription(java.lang.String description)
- Sets the collection description.
- Specified by:
setDescription
in interface TrackedObjectCollection
- Parameters:
description
- The description.
getName
public java.lang.String getName()
- Returns the collection name.
- Specified by:
getName
in interface TrackedObjectCollection
- Returns:
- The name or null if one does not exist.
setName
public void setName(java.lang.String name)
- Sets the collection name.
- Specified by:
setName
in interface TrackedObjectCollection
- Parameters:
name
- The name.
iterator
public java.util.Iterator iterator()
- Returns an iteration of tracked objects.
- Specified by:
iterator
in interface TrackedObjectCollection
- Returns:
- An iteration.
listIterator
public java.util.ListIterator listIterator()
- Returns an iteration of tracked objects.
- Specified by:
listIterator
in interface TrackedObjectCollection
- Returns:
- An iteration.
listIterator
public java.util.ListIterator listIterator(java.util.Comparator compare)
- Returns a sorted iteration of tracked objects.
- Specified by:
listIterator
in interface TrackedObjectCollection
- Parameters:
comparator
- A Comparator for sorting, or null for no sorting.- Returns:
- An iteration.