|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joe_e.array.ConstArray.Builder<E> org.joe_e.array.ImmutableArray.Builder<E> org.joe_e.array.PowerlessArray.Builder<Boolean> org.joe_e.array.BooleanArray.Builder
public static final class BooleanArray.Builder
A BooleanArray
factory.
Method Summary | |
---|---|
void |
append(boolean newBoolean)
Append a boolean |
void |
append(Boolean newBoolean)
Append a Boolean |
void |
append(boolean[] newBooleans)
Append an array of boolean s |
void |
append(Boolean[] newBooleans)
Append an array of Boolean s |
void |
append(boolean[] newBooleans,
int off,
int len)
Append a range of elements from an array of boolean s |
void |
append(Boolean[] newBooleans,
int off,
int len)
Append a range of elements from an array of Boolean s |
BooleanArray |
snapshot()
Create a snapshot of the current content. |
Methods inherited from class org.joe_e.array.ConstArray.Builder |
---|
length |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void append(Boolean newBoolean)
Boolean
append
in interface ArrayBuilder<Boolean>
append
in class PowerlessArray.Builder<Boolean>
newBoolean
- the element to add
NegativeArraySizeException
- if the resulting internal array
would exceed the maximum length of a Java array. The builder is
unmodified.public void append(Boolean[] newBooleans)
Boolean
s
append
in interface ArrayBuilder<Boolean>
append
in class PowerlessArray.Builder<Boolean>
newBooleans
- the elements to add
IndexOutOfBoundsException
- if the resulting internal array
would exceed the maximum length of a Java array. The builder is
unmodified.public void append(Boolean[] newBooleans, int off, int len)
Boolean
s
append
in interface ArrayBuilder<Boolean>
append
in class PowerlessArray.Builder<Boolean>
newBooleans
- the array to add elements fromoff
- the index of the first element to addlen
- the number of elements to add
IndexOutOfBoundsException
- if an out-of-bounds index would
be referenced or the resulting internal array would exceed the
maximum length of a Java array. The builder is unmodified.public BooleanArray snapshot()
snapshot
in interface ArrayBuilder<Boolean>
snapshot
in class PowerlessArray.Builder<Boolean>
BooleanArray
containing the elements so farpublic void append(boolean newBoolean)
boolean
newBoolean
- the element to add
NegativeArraySizeException
- if the resulting internal array
would exceed the maximum length of a Java array. The builder is
unmodified.public void append(boolean[] newBooleans)
boolean
s
newBooleans
- the elements to add
IndexOutOfBoundsException
- if the resulting internal array
would exceed the maximum length of a Java array. The builder is
unmodified.public void append(boolean[] newBooleans, int off, int len)
boolean
s
newBooleans
- the array to add elements fromoff
- the index of the first element to addlen
- the number of elements to add
IndexOutOfBoundsException
- if an out-of-bounds index would
be referenced or the resulting internal array would exceed the
maximum length of a Java array. The builder is unmodified.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |