com.steptools.stdev.keystone
Class Aggregate

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by com.steptools.stdev.keystone.Aggregate
All Implemented Interfaces:
Instance, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List
Direct Known Subclasses:
AggregateBoolean, AggregateInteger, AggregateLogical, AggregateObject, AggregateReal, AggregateString

public abstract class Aggregate
extends java.util.AbstractList
implements Instance, java.util.List

Base class for EXPRESS-defined aggregates


Method Summary
 void add(int index, java.lang.Object element)
          Insert a value at a specified index
 java.lang.Object clone()
          Generate a shallow copy of this object
 java.lang.Object get(int idx)
          Get the element at a particular element
 java.lang.Object remove(int index)
          Remove a value at a specified index
 java.lang.Object set(int index, java.lang.Object element)
          Set the value at a specified index
 int size()
          Get the size of the aggregate
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.steptools.stdev.Instance
domain
 
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, subList, toArray, toArray
 

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: Instance
Generate a shallow copy of this object

Specified by:
clone in interface Instance
Overrides:
clone in class java.lang.Object
Returns:
A copy of this object
Throws:
java.lang.CloneNotSupportedException - If this method cannot be cloned. This is not thrown be any ST-Developer class, but was provided in the java.lang.Object prototype for clone().

get

public java.lang.Object get(int idx)
Get the element at a particular element

Specified by:
get in interface java.util.List
Specified by:
get in class java.util.AbstractList
Parameters:
idx - Index to get the value at.
Returns:
The object at the specified index

size

public int size()
Get the size of the aggregate

Specified by:
size in interface java.util.Collection
Specified by:
size in interface java.util.List
Specified by:
size in class java.util.AbstractCollection

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Set the value at a specified index

Specified by:
set in interface java.util.List
Overrides:
set in class java.util.AbstractList
Parameters:
index - The index in set.
element - The value to set.

add

public void add(int index,
                java.lang.Object element)
Insert a value at a specified index

Specified by:
add in interface java.util.List
Overrides:
add in class java.util.AbstractList
Parameters:
index - The index in set.
element - The value to set.

remove

public java.lang.Object remove(int index)
Remove a value at a specified index

Specified by:
remove in interface java.util.List
Overrides:
remove in class java.util.AbstractList
Parameters:
index - The index in set.
Returns:
The value that was removed