|
|||||||||
| 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<E>
public static class PowerlessArray.Builder<E>
A PowerlessArray factory.
| Method Summary | |
|---|---|
void |
append(E newE)
Appends an element to the Array |
void |
append(E[] newEs)
Appends all elements from a Java array to the Array |
void |
append(E[] newEs,
int off,
int len)
Appends a range of elements from a Java array to the Array |
PowerlessArray<E> |
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(E newE)
append in interface ArrayBuilder<E>append in class ImmutableArray.Builder<E>newE - the element to append
ClassCastException - if the newE is not powerless
NegativeArraySizeException - if the resulting internal array
would exceed the maximum length of a Java array. The builder is
unmodified.public void append(E[] newEs)
append in interface ArrayBuilder<E>append in class ImmutableArray.Builder<E>newEs - the element to append
ClassCastException - if the newEs are not
powerless
IndexOutOfBoundsException - if the resulting internal array
would exceed the maximum length of a Java array. The builder is
unmodified.public void append(E[] newEs,
int off,
int len)
append in interface ArrayBuilder<E>append in class ImmutableArray.Builder<E>newEs - the source arrayoff - the index of the first element to appendlen - the number of elements to append
ClassCastException - if the newEs is not powerless
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 PowerlessArray<E> snapshot()
snapshot in interface ArrayBuilder<E>snapshot in class ImmutableArray.Builder<E>PowerlesstArray containing the elements so far
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||