org.omegahat.Environment.ObjectDataStructures
Class integer

java.lang.Object
  |
  +--org.omegahat.Environment.ObjectDataStructures.vector
        |
        +--org.omegahat.Environment.ObjectDataStructures.integer
All Implemented Interfaces:
Addable, AssignableSubset, Divisable, MathOperable, MathOperations, Multiplicable, java.io.Serializable, Subsettable, Subtractable, VariableInt

public class integer
extends vector

Class to represent a collection (array) of integer-valued numbers that supports additional facilities than an array does.

See Also:
Serialized Form

Fields inherited from class org.omegahat.Environment.ObjectDataStructures.vector
_data, NA_PATTERN, NullObject
 
Fields inherited from interface org.omegahat.Environment.DataStructures.MathOperable
DIVIDE, MINUS, MULTIPLY, PLUS
 
Constructor Summary
integer()
           
integer(int Length)
          Basic constructor that initializes the container to the specified length.
integer(integer src, boolean copy)
           
integer(int start, int Length)
           
integer(int start, int end, int by)
          Generate a sequence starting at start, ending at or close to end with an increment of by.
integer(long d)
           
integer(long[] d)
          Populate the vector with the values in the given array.
integer(long d, boolean value)
           
 
Method Summary
 java.lang.Object convertElement(java.lang.Object el)
           
 int getElement(int i)
          Get the element of the collection at position i.
 int[] primitiveData()
          Return an array containing the values stored in this collection, converted to primitives.
 int setData(int[] d)
           
 int setData(long[] d)
           
 java.lang.Class targetClass()
          The default class of each element in the list.
static long valueOf(java.lang.String s)
           
 
Methods inherited from class org.omegahat.Environment.ObjectDataStructures.vector
add, add, addElement, addValue, apply, apply, asArray, assignElement, assignSubset, copy, createElement, createElement, createVariable, data, data, data, data, data, divide, divide, divideValue, element, elementMathOp, elementToString, exp, findMethod, getDataFrame, getName, isNA, isNA, length, length, length, mathOperation, mathOperation, mathOperation, metaData, minus, minus, multiply, multiply, multiplyValue, numObservations, plus, plus, read, read, separator, setDataFrame, setName, subset, subtractValue, toString, value, values, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

integer

public integer()

integer

public integer(int Length)
Basic constructor that initializes the container to the specified length.

integer

public integer(long[] d)
Populate the vector with the values in the given array.

integer

public integer(long d)

integer

public integer(long d,
               boolean value)

integer

public integer(int start,
               int end,
               int by)
Generate a sequence starting at start, ending at or close to end with an increment of by.

integer

public integer(int start,
               int Length)

integer

public integer(integer src,
               boolean copy)
Method Detail

targetClass

public java.lang.Class targetClass()
Description copied from class: vector
The default class of each element in the list. Used to ensure type-integrity of the array as well as for creating new elements.
Overrides:
targetClass in class vector

setData

public int setData(int[] d)

setData

public int setData(long[] d)

valueOf

public static long valueOf(java.lang.String s)
                    throws java.io.IOException

getElement

public int getElement(int i)
Get the element of the collection at position i.

primitiveData

public int[] primitiveData()
Return an array containing the values stored in this collection, converted to primitives.

convertElement

public java.lang.Object convertElement(java.lang.Object el)
Overrides:
convertElement in class vector