|
|||||||||
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<Short> org.joe_e.array.ShortArray.Builder
public static final class ShortArray.Builder
A ShortArray
factory.
Method Summary | |
---|---|
void |
append(short newShort)
Append a short |
void |
append(Short newShort)
Append a Short |
void |
append(short[] newShorts)
Append an array of short s |
void |
append(Short[] newShorts)
Append an array of Short s |
void |
append(short[] newShorts,
int off,
int len)
Append a range of elements from an array of short s |
void |
append(Short[] newShorts,
int off,
int len)
Append a range of elements from an array of Short s |
ShortArray |
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(Short newShort)
Short
append
in interface ArrayBuilder<Short>
append
in class PowerlessArray.Builder<Short>
newShort
- 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(Short[] newShorts)
Short
s
append
in interface ArrayBuilder<Short>
append
in class PowerlessArray.Builder<Short>
newShorts
- 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(Short[] newShorts, int off, int len)
Short
s
append
in interface ArrayBuilder<Short>
append
in class PowerlessArray.Builder<Short>
newShorts
- 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 ShortArray snapshot()
snapshot
in interface ArrayBuilder<Short>
snapshot
in class PowerlessArray.Builder<Short>
ShortArray
containing the elements so farpublic void append(short newShort)
short
newShort
- 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(short[] newShorts)
short
s
newShorts
- 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(short[] newShorts, int off, int len)
short
s
newShorts
- 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 |