|
ref_send API 2.17 defensive programming in Java |
|||||||||
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<java.lang.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(java.lang.Character newChar)
Append a Character |
void |
append(java.lang.Character[] newChars)
Append an array of Character s |
void |
append(java.lang.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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void append(java.lang.Character newChar)
Character
append
in interface ArrayBuilder<java.lang.Character>
append
in class PowerlessArray.Builder<java.lang.Character>
newChar
- the element to add
java.lang.NegativeArraySizeException
- if the resulting internal array
would exceed the maximum length of a Java array. The builder is
unmodified.public void append(java.lang.Character[] newChars)
Character
s
append
in interface ArrayBuilder<java.lang.Character>
append
in class PowerlessArray.Builder<java.lang.Character>
newChars
- the elements to add
java.lang.IndexOutOfBoundsException
- if the resulting internal array
would exceed the maximum length of a Java array. The builder is
unmodified.public void append(java.lang.Character[] newChars, int off, int len)
Character
s
append
in interface ArrayBuilder<java.lang.Character>
append
in class PowerlessArray.Builder<java.lang.Character>
newChars
- the array to add elements fromoff
- the index of the first element to addlen
- the number of elements to add
java.lang.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<java.lang.Character>
snapshot
in class PowerlessArray.Builder<java.lang.Character>
CharArray
containing the elements so farpublic void append(char newChar)
char
newChar
- the element to add
java.lang.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
java.lang.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
java.lang.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.
|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.