|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joe_e.array.ConstArray.Builder<E>
org.joe_e.array.ImmutableArray.Builder<E>
org.joe_e.array.PowerlessArray.Builder<Character>
org.joe_e.array.CharArray.Builder
public static final class CharArray.Builder
A CharArray
factory.
Method Summary | |
---|---|
void |
append(char newChar)
Append a char |
void |
append(char[] newChars)
Append an array of char s |
void |
append(char[] newChars,
int off,
int len)
Append a range of elements from an array of char s |
void |
append(Character newChar)
Append a Character |
void |
append(Character[] newChars)
Append an array of Character s |
void |
append(Character[] newChars,
int off,
int len)
Append a range of elements from an array of Character s |
CharArray |
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(Character newChar)
Character
append
in interface ArrayBuilder<Character>
append
in class PowerlessArray.Builder<Character>
newChar
- 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(Character[] newChars)
Character
s
append
in interface ArrayBuilder<Character>
append
in class PowerlessArray.Builder<Character>
newChars
- 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(Character[] newChars, int off, int len)
Character
s
append
in interface ArrayBuilder<Character>
append
in class PowerlessArray.Builder<Character>
newChars
- 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 CharArray snapshot()
snapshot
in interface ArrayBuilder<Character>
snapshot
in class PowerlessArray.Builder<Character>
CharArray
containing the elements so farpublic void append(char newChar)
char
newChar
- 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(char[] newChars)
char
s
newChars
- 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(char[] newChars, int off, int len)
char
s
newChars
- 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 All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |