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