com.steptools.stdev.keystone
Class AggregateInteger

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by com.steptools.stdev.keystone.Aggregate
              extended by com.steptools.stdev.keystone.AggregateInteger
All Implemented Interfaces:
Instance, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List
Direct Known Subclasses:
ArrayInteger, BagInteger, ListInteger, SetInteger

public abstract class AggregateInteger
extends Aggregate

Aggregate of Integer values


Constructor Summary
AggregateInteger()
           
 
Method Summary
 void add(int value)
          Insert an element into the Aggregate at the end of the aggregate
 void add(int index, int element)
          Insert an element into the Aggregate at a specified index
 int getValue(int idx)
          Get the value at a specified index
 void set(int index, int element)
          Set a value at a specified index
 
Methods inherited from class com.steptools.stdev.keystone.Aggregate
add, clone, get, remove, set, size
 
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
 

Constructor Detail

AggregateInteger

public AggregateInteger()
Method Detail

getValue

public int getValue(int idx)
Get the value at a specified index

Parameters:
idx - the element to get.
Returns:
the value at the specified index.

set

public void set(int index,
                int element)
Set a value at a specified index

Parameters:
index - of the element to set
element - the value to to be stored at the specified location.

add

public void add(int index,
                int element)
Insert an element into the Aggregate at a specified index

Parameters:
index - of the element to set
element - the value to to be stored at the specified location.

add

public void add(int value)
Insert an element into the Aggregate at the end of the aggregate

Parameters:
element - the value to to be stored at the specified location.