|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.white.xpp.basic.Heaper
|
+--org.abora.white.collection.arrays.PrimArray
|
+--org.abora.white.collection.arrays.PrimArithmeticArray
|
+--org.abora.white.collection.arrays.PrimIntegerArray
|
+--org.abora.white.collection.arrays.PrimIntArray
|
+--org.abora.white.collection.arrays.Int32Array
| Constructor Summary | |
protected |
Int32Array(int count)
|
protected |
Int32Array(int[] buffer)
|
protected |
Int32Array(int size,
PrimArray from,
int sourceOffset,
int count,
int destOffset)
|
| Method Summary | |
protected void |
addData(int start,
PrimArithmeticArray other,
int otherStart,
int count)
Arithmetic addition of the respective elements of other to this over the specified index range. |
int |
bitCount()
Return the maximum bits/entry that can be stored in this array |
protected int |
compareData(int start,
PrimArithmeticArray other,
int otherStart,
int count)
Over given range, returns - if this < other; 0 if this == other; + if this > other. |
void |
copyToBuffer(int[] buffer,
int count,
int start)
Copy a consequitive range of elements from the receiver into the supplied buffer. |
int |
count()
Return the number of elements the array can hold. |
Heaper |
fetchValue(int index)
Fetch a value; may be a Heaper, null, or a PrimValue as appropriate to PrimArray subclass. |
int |
int32At(int index)
Get a 32 bit signed actual integer value |
IntegerValue |
integerAt(int index)
Fetch an integer value at the specified index. |
static Int32Array |
make(int count)
create an Int32Array filled with zeros |
static Int32Array |
make(int[] buffer)
create an Int32Array filled with the data at 'buffer' |
static Int32Array |
make(int size,
PrimArray from)
|
static Int32Array |
make(int size,
PrimArray from,
int sourceOffset)
|
static Int32Array |
make(int size,
PrimArray from,
int sourceOffset,
int count)
|
static Int32Array |
make(int size,
PrimArray from,
int sourceOffset,
int count,
int destOffset)
create an Int32Array filled with the indicated data in 'from' |
static Int32Array |
make(PrimArray from)
|
protected PrimArray |
makeNew(int size,
PrimArray source,
int sourceOffset,
int count,
int destOffset)
Return a new array of the same type as this
initialized with the elements of source specified by
the index range, prepended by destOffset and postpended by
null or 0 elements. |
protected void |
printElementOn(int index,
java.io.PrintWriter oo)
Print a representation of the element at the given index. |
protected int |
signOfNonZeroAfter(int index)
Return the sign, -1 or +1, of the next non-zero element after start, or 0 if no such element. |
PrimSpec |
spec()
A description of the kinds of things which can be stored in this array |
void |
storeInt32(int index,
int value)
Store a 32 bit signed integer value |
void |
storeInteger(int index,
IntegerValue value)
Store an integer value at the specified index. |
void |
storeValue(int index,
Heaper value)
Store a value; may be a Heaper, null, or a PrimValue as appropriate to PrimArray subclass. |
protected void |
subtractData(int start,
PrimArithmeticArray other,
int otherStart,
int count)
Subtract the respective elements of other from this over the given index range. |
| Methods inherited from class org.abora.white.collection.arrays.PrimIntArray |
zeros |
| Methods inherited from class org.abora.white.collection.arrays.PrimIntegerArray |
elementsHash, hold, hold, indexOf, indexOfInteger, indexOfInteger, indexOfInteger, indexPast, indexPastInteger, indexPastInteger, indexPastInteger, storeAll, zeroElement |
| Methods inherited from class org.abora.white.collection.arrays.PrimArithmeticArray |
addElements, addElements, addElements, compare, compare, compare, compare, contentsEqual, elementsEqual, subtractElements, subtractElements, subtractElements |
| Methods inherited from class org.abora.white.collection.arrays.PrimArray |
contentsHash, copy, copy, copy, copy, copy, copyElements, copyGrow, elementsEqual, elementsEqual, elementsHash, elementsHash, getValue, indexOf, indexOf, indexOfElements, indexOfElements, indexOfElements, indexOfElements, indexOfElements, indexPast, indexPast, isEqual, printOn, storeAll, storeAll, storeMany, storeMany, storeMany, zeroElements, zeroElements, zeroElements |
| Methods inherited from class org.abora.white.xpp.basic.Heaper |
actualHashForEqual, destroy, destruct, equals, hashForEqual, printContentsOn, sendSelfTo, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected Int32Array(int count)
protected Int32Array(int size,
PrimArray from,
int sourceOffset,
int count,
int destOffset)
protected Int32Array(int[] buffer)
| Method Detail |
public static Int32Array make(int count)
public static Int32Array make(int size,
PrimArray from,
int sourceOffset,
int count,
int destOffset)
public static Int32Array make(int size,
PrimArray from,
int sourceOffset,
int count)
public static Int32Array make(int size,
PrimArray from,
int sourceOffset)
public static Int32Array make(int size,
PrimArray from)
public static Int32Array make(PrimArray from)
public static Int32Array make(int[] buffer)
protected PrimArray makeNew(int size,
PrimArray source,
int sourceOffset,
int count,
int destOffset)
PrimArraythis
initialized with the elements of source specified by
the index range, prepended by destOffset and postpended by
null or 0 elements.
makeNew in class PrimArraysize - size of new array.source - source of elements to be initialized with in the new array.sourceOffset - first index of the source array to be included in the range.count - number of elements of source to include in the new arraydestOffset - first index of new array to be initialized with source elements.
public void storeInt32(int index,
int value)
public int int32At(int index)
public void storeInteger(int index,
IntegerValue value)
PrimIntegerArrayvalue at the specified index.
storeInteger in class PrimIntegerArrayindex - index in array the element will be stored at.value - integer to store in this.public IntegerValue integerAt(int index)
PrimIntegerArrayindex.
integerAt in class PrimIntegerArrayindex - index in array whose element will be returned
index.
public void storeValue(int index,
Heaper value)
PrimArraythis can hold.
It is expected that most PrimArray clients will want to use less abstract access methods
storeValue in class PrimArrayindex - index in array the element will be stored at.value - heaper to store in this.public Heaper fetchValue(int index)
PrimArrayIt is expected that most PrimArray clients will want to use less abstract access methods.
fetchValue in class PrimArrayindex - index in array whose element will be returned
index.public int count()
PrimArray
count in class PrimArraypublic PrimSpec spec()
PrimArray
spec in class PrimArraypublic int bitCount()
PrimIntArray
bitCount in class PrimIntArray
public void copyToBuffer(int[] buffer,
int count,
int start)
buffer - array to fill with receveirs elementscount - number of consequentive elements in range or all
elements from start if -1. Silently truncate if count is
larger than available elements in the receiverstart - index of first element in range
protected int compareData(int start,
PrimArithmeticArray other,
int otherStart,
int count)
PrimArithmeticArray
compareData in class PrimIntegerArrayprotected int signOfNonZeroAfter(int index)
PrimArithmeticArray
signOfNonZeroAfter in class PrimArithmeticArray
protected void addData(int start,
PrimArithmeticArray other,
int otherStart,
int count)
PrimArithmeticArrayNote that arithmetic overflows aren't faulted.
Subclasses should override.
addData in class PrimIntegerArray
protected void subtractData(int start,
PrimArithmeticArray other,
int otherStart,
int count)
PrimArithmeticArrayNote that arithmetic overflows aren't faulted.
Subclasses should override.
subtractData in class PrimIntegerArray
protected void printElementOn(int index,
java.io.PrintWriter oo)
PrimArrayindex.
printElementOn in class PrimArrayindex - index of element to be printed.oo - print stream to write element representation to.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||