|
|||||||||
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<Long>
org.joe_e.array.LongArray.Builder
public static final class LongArray.Builder
A LongArray
factory.
Method Summary | |
---|---|
void |
append(long newLong)
Append a long |
void |
append(Long newLong)
Append a Long |
void |
append(long[] newLongs)
Append an array of long s |
void |
append(Long[] newLongs)
Append an array of Long s |
void |
append(long[] newLongs,
int off,
int len)
Append a range of elements from an array of long s |
void |
append(Long[] newLongs,
int off,
int len)
Append a range of elements from an array of Long s |
LongArray |
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(Long newLong)
Long
append
in interface ArrayBuilder<Long>
append
in class PowerlessArray.Builder<Long>
newLong
- 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(Long[] newLongs)
Long
s
append
in interface ArrayBuilder<Long>
append
in class PowerlessArray.Builder<Long>
newLongs
- 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(Long[] newLongs, int off, int len)
Long
s
append
in interface ArrayBuilder<Long>
append
in class PowerlessArray.Builder<Long>
newLongs
- 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 LongArray snapshot()
snapshot
in interface ArrayBuilder<Long>
snapshot
in class PowerlessArray.Builder<Long>
LongArray
containing the elements so farpublic void append(long newLong)
long
newLong
- 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(long[] newLongs)
long
s
newLongs
- 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(long[] newLongs, int off, int len)
long
s
newLongs
- 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 All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |