|
|||||||||
| 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.PrimitiveArrayChar
|
+--xbn.array.primitive.PACChar
A PrimitiveArrayChar that wraps around an array of chars.
Source code: PACChar.java.
| Field Summary | |
static String |
sPACC
To shorten code and Javadoc. |
| Fields inherited from class xbn.XBNObject |
bFALSE_IN_PRODUCTION, bTRUE_IN_PRODUCTION, sCNSTR, sES, sLINE_SEP |
| Constructor Summary | |
PACChar()
Create a PACChar with default values. |
|
PACChar(char[] a_char)
Create a PACChar. |
|
PACChar(char[] a_char,
boolean b_lock)
Create a PACChar. |
|
PACChar(char[] a_char,
PARChar par_char)
Create a PACChar. |
|
PACChar(String s_fqExtendingClass,
char[] a_char)
Create a PACChar. |
|
PACChar(String s_fqExtendingClass,
char[] a_char,
boolean b_lock)
Create a PACChar. |
|
PACChar(String s_fqExtendingClass,
char[] a_char,
PARChar par_char)
Create a PACChar. |
|
PACChar(String s_fqExtendingClass,
char[] a_char,
PARChar par_char,
boolean b_lock)
Create an PACChar. |
|
| Method Summary | |
char[] |
getAOChar()
Get the array of chars for direct manipulation. |
char |
getChar(int i_dx)
Get the char at the provide array index. |
int |
getLength()
How many chars are in the char array? |
boolean |
isLocked()
Is the value locked? |
boolean |
isNull()
Is the array null? |
boolean |
isNull(int i_dx)
Is the char at the requested array index null? |
void |
lock()
Lock the value, forbidding further sets. |
| Methods inherited from class xbn.array.primitive.PrimitiveArrayChar |
areLmntsEqual, areLmntsEqual, getPARChar, getString, isValid |
| Methods inherited from class xbn.array.primitive.PrimitiveArray |
areLmntsEqual, crashIfBad, crashIfBad, declareNoViolation, getFQClassName, getList, getList, getList, getList, getNewAOSOBString, getNewAOSOBStringBuffer, getNewAOString, getPAViolation, getPrimitiveArrayRule, getSOBString, getSOBStringBuffer, 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 |
| Field Detail |
public static final String sPACC
To shorten code and Javadoc.
Equal to "xbn.array.primitive.PACChar"
| Constructor Detail |
public PACChar()
Create a PACChar with default values.
Equal to PACChar(null)
public PACChar(char[] a_char)
public PACChar(String s_fqExtendingClass,
char[] a_char)
public PACChar(char[] a_char,
PARChar par_char)
public PACChar(String s_fqExtendingClass,
char[] a_char,
PARChar par_char)
Create a PACChar.
Equal to PACChar(s_fqExtendingClass, a_char, par_char)
public PACChar(char[] a_char,
boolean b_lock)
public PACChar(String s_fqExtendingClass,
char[] a_char,
boolean b_lock)
Create a PACChar.
Equal to PACChar(s_fqExtendingClass, a_char, (new PARChar()), b_lock)
public PACChar(String s_fqExtendingClass,
char[] a_char,
PARChar par_char,
boolean b_lock)
Create an PACChar.
Equal to PrimitiveArrayChar(s_fqExtendingClass, a_char, par_char, b_lock)
a_char - The array of ints to analyze.b_lock - Should the char array be directly accessible, via getAOChar? If true, yes. If false, no.| Method Detail |
public char[] getAOChar()
Get the array of chars for direct manipulation.
public char getChar(int i_dx)
Get the char at the provide array index.
getChar in class PrimitiveArrayChari_dx - The array index. Must range 0..[getLength() - 1], inclusivea_char[i_dx] Where a_char is exactly as pacced into the constructor.AssertException - If isNull equals true.public int getLength()
How many chars are in the char array?
getLength in class PrimitiveArraya_char.length Where a_char is exactly as pacced into the constructor.AssertException - If isNull equals true.public boolean isNull()
Is the array null?
isNull in class PrimitiveArray(a_char == null) Where a_char is exactly as pacced into the constructor.public boolean isNull(int i_dx)
Is the char at the requested array index null?
isNull in class PrimitiveArraypublic final void lock()
LockOneWayLock the value, forbidding further sets. There is no way to unlock the value, so consider this function a "one way ticket".
It is recommended to crash if the value is already locked (isLocked is true). You must crash in your class' "set" functions when isLocked is true.
lock in interface LockOneWayxbn.util.LockOneWayAssertException - If isLocked is true.public final boolean isLocked()
LockOneWayIs the value locked?
isLocked in interface LockOneWayxbn.util.LockOneWay
|
|||||||||
| 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