ST-Developer Java Reference

com.steptools.stdev.keystone
Class AggregateInteger

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

public abstract class AggregateInteger
extends AggregatePrimitive<Integer>

Aggregate of Integer values


Field Summary
 
Fields inherited from class com.steptools.stdev.keystone.AggregatePrimitive
size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AggregateInteger()
          Create an aggregate of EXPRESS REAL numbers
AggregateInteger(int init_size)
          Create an aggregate of EXPRESS REAL with the given capacity.
 
Method Summary
 boolean add(int value)
          Insert an element into the Aggregate at the end of the aggregate
 boolean add(Integer value)
          Insert an element into the Aggregate at the end of the aggregate
 void add(int index, int value)
          Insert an element into the Aggregate at a specified index
 void add(int index, Integer value)
          Insert an element into the Aggregate at a specified index
 void addObject(int index, Object element)
          Insert a value at a specified index
 void addObject(Object element)
          Insert a value to the end of the aggregate
protected  Object createBuffer(int sz)
          Create a Java array of the type of the aggregate with the spefified size.
 Integer get(int idx)
          Get the element at a particular element
protected  Object getBuffer()
          Get the buffer object.
protected  int getCapacity()
          Get the length of the buffer.
 int getValue(int idx)
          Get the value at a specified index
 int set(int index, int value)
          Set a value at a specified index
 Integer set(int index, Integer value)
          Set a value at a specified index
 void setObject(int index, Object element)
          Set the value at a specified index
 
Methods inherited from class com.steptools.stdev.keystone.AggregatePrimitive
checkIndex, clone, size, trimToSize, updateCapacity
 
Methods inherited from class java.util.AbstractList
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.steptools.stdev.Instance
domain
 
Methods inherited from interface java.util.List
addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, subList, toArray, toArray
 

Constructor Detail

AggregateInteger

public AggregateInteger(int init_size)
Create an aggregate of EXPRESS REAL with the given capacity.

Parameters:
init_size - initial size of the buffer to use

AggregateInteger

public AggregateInteger()
Create an aggregate of EXPRESS REAL numbers

Method Detail

getBuffer

protected Object getBuffer()
Description copied from class: AggregatePrimitive
Get the buffer object.

Specified by:
getBuffer in class AggregatePrimitive<Integer>

createBuffer

protected Object createBuffer(int sz)
Description copied from class: AggregatePrimitive
Create a Java array of the type of the aggregate with the spefified size. This method must be overridded by the subtype.

Specified by:
createBuffer in class AggregatePrimitive<Integer>
Parameters:
sz - The requested size of the buffer.
Returns:
A Java array of the aggregate type of the requested size (e.g. int[]).

getCapacity

protected int getCapacity()
Description copied from class: AggregatePrimitive
Get the length of the buffer.

Specified by:
getCapacity in class AggregatePrimitive<Integer>

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.

get

public Integer get(int idx)
Get the element at a particular element

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

set

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

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

set

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

Specified by:
set in interface List<Integer>
Overrides:
set in class AbstractList<Integer>
Parameters:
index - of the element to set
value - the value to to be stored at the specified location.
Returns:
The old value at the specified index.

setObject

public void setObject(int index,
                      Object element)
Set the value at a specified index

Parameters:
index - The index in set.
element - The value to set.

add

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

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

add

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

Specified by:
add in interface List<Integer>
Overrides:
add in class AbstractList<Integer>
Parameters:
index - of the element to set
value - the value to to be stored at the specified location.

addObject

public void addObject(int index,
                      Object element)
Insert a value at a specified index

Parameters:
index - The index in set.
element - The value to set.

add

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

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

add

public boolean add(Integer value)
Insert an element into the Aggregate at the end of the aggregate

Specified by:
add in interface Collection<Integer>
Specified by:
add in interface List<Integer>
Overrides:
add in class AbstractList<Integer>
Parameters:
value - the value to to be stored at the specified location.

addObject

public void addObject(Object element)
Insert a value to the end of the aggregate

Parameters:
element - The value to set.

ST-Developer Java Reference