|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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<Float>
org.joe_e.array.FloatArray.Builder
public static final class FloatArray.Builder
A FloatArray factory.
| Method Summary | |
|---|---|
void |
append(float newFloat)
Append a float |
void |
append(Float newFloat)
Append a Float |
void |
append(float[] newFloats)
Append an array of floats |
void |
append(Float[] newFloats)
Append an array of Floats |
void |
append(float[] newFloats,
int off,
int len)
Append a range of elements from an array of floats |
void |
append(Float[] newFloats,
int off,
int len)
Append a range of elements from an array of Floats |
FloatArray |
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(Float newFloat)
Float
append in interface ArrayBuilder<Float>append in class PowerlessArray.Builder<Float>newFloat - 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(Float[] newFloats)
Floats
append in interface ArrayBuilder<Float>append in class PowerlessArray.Builder<Float>newFloats - 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(Float[] newFloats,
int off,
int len)
Floats
append in interface ArrayBuilder<Float>append in class PowerlessArray.Builder<Float>newFloats - 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 FloatArray snapshot()
snapshot in interface ArrayBuilder<Float>snapshot in class PowerlessArray.Builder<Float>FloatArray containing the elements so farpublic void append(float newFloat)
float
newFloat - 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(float[] newFloats)
floats
newFloats - 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(float[] newFloats,
int off,
int len)
floats
newFloats - 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 | ||||||||