|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xbn.XBNObject | +--xbn.util.XBNLocked | +--xbn.array.primitive.PrimitiveArray | +--xbn.array.primitive.PrimitiveArrayInt
A PrimitiveArray for ints.
Source code: PrimitiveArrayInt.java.
Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
Constructor Summary | |
protected |
PrimitiveArrayInt(String s_fqExtendingClass,
PARInt par_int)
Create an PrimitiveArrayInt. |
Method Summary | |
boolean |
areLmntsEqual(int i_idxThis,
PrimitiveArray pa_other,
int i_idxOther)
Are the two elements equal? |
boolean |
areLmntsEqual(int i_idxThis,
PrimitiveArrayInt pai_other,
int i_idxOther)
Is an element in this PrimitiveArrayInt equal to an element in another? |
abstract int |
getInt(int i_dx)
Get the int at the requested array index. |
int |
getMaximum()
What is the maximum value contained in the array? |
int |
getMinimum()
What is the minimum value contained in the array? |
PARInt |
getPARInt()
Get the PARInt for direct manipulation. |
String |
getString(int i_dx)
Get the element at the requested array index, as a string. |
boolean |
isValid(String s_callingClsFnc,
String s_varName)
Is the [object wrapped to look like an array of ints] legal? |
Methods inherited from class xbn.array.primitive.PrimitiveArray |
areLmntsEqual, crashIfBad, crashIfBad, declareNoViolation, getFQClassName, getLength, getList, getList, getList, getList, getNewAOSOBString, getNewAOSOBStringBuffer, getNewAOString, getPAViolation, getPrimitiveArrayRule, getSOBString, getSOBStringBuffer, isNull, isNull, isValid, setPAViolation, throwAXIllegal, throwLmntsEqualAioobx, wasValidated |
Methods inherited from class xbn.util.XBNLocked |
throwLX, throwLX, throwLXIfLocked, throwLXIfLocked, throwLXIfLocked, throwLXIfUnlocked |
Methods inherited from class xbn.XBNObject |
getXMsgPrefix, sop, sopl, sopl, throwAX, throwAXIfBadStr, throwAXIfNull, throwAXSpoof |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PrimitiveArrayInt(String s_fqExtendingClass, PARInt par_int)
Create an PrimitiveArrayInt.
The first line of this constructor calls PrimitiveArray(s_fqExtendingClass, par_int)
par_int
- Defines the rules to be enforced by isValid. May not be null. See getPARInt.Method Detail |
public abstract int getInt(int i_dx)
Get the int at the requested array index.
i_dx
- The array index. Must range 0..[getLength() - 1]
, inclusive.AssertException
- If isNull equals true.public final String getString(int i_dx)
PrimitiveArray
Get the element at the requested array index, as a string.
getString
in class PrimitiveArray
(new Integer(getInt(i_dx))).toString()
public final boolean areLmntsEqual(int i_idxThis, PrimitiveArray pa_other, int i_idxOther)
PrimitiveArray
Are the two elements equal?
areLmntsEqual
in class PrimitiveArray
xbn.array.primitive.PrimitiveArray
i_idxThis
- The array index. Must range 0..[getLength() - 1]
, inclusivepa_other
- The PrimitiveArray to retrieve element i_idxOther from. May not be null.i_idxOther
- The array index of the desired element in pa_other. Must be valid for pa_other.public final boolean areLmntsEqual(int i_idxThis, PrimitiveArrayInt pai_other, int i_idxOther)
Is an element in this PrimitiveArrayInt equal to an element in another?
For documentation on this function, see PrimitiveArray.areLmntsEqual.
public final PARInt getPARInt()
Get the PARInt for direct manipulation.
public final boolean isValid(String s_callingClsFnc, String s_varName)
Is the [object wrapped to look like an array of ints] legal?
isValid
in class PrimitiveArray
s_callingClsFnc
- The name of the class-dot-function for use in potential error messages only. This is the place where the error message should appear that it was generated from. For example: xbn.util.PrimitiveArrayInt.crashIfInvalid
.s_varName
- The descriptive name of the int array, for potential error messages only.public final int getMaximum()
What is the maximum value contained in the array?
AssertException
- If isNull equals true.public final int getMinimum()
What is the minimum value contained in the array?
AssertException
- If isNull equals true.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1997-2003, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
http://sourceforge.net/projects/xbnjava