| 
 | ref_send API 2.17 defensive programming in Java | |||||||||
| 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<java.lang.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(java.lang.Long newLong)Append a Long | 
|  void | append(long[] newLongs)Append an array of longs | 
|  void | append(java.lang.Long[] newLongs)Append an array of Longs | 
|  void | append(long[] newLongs,
             int off,
             int len)Append a range of elements from an array of longs | 
|  void | append(java.lang.Long[] newLongs,
             int off,
             int len)Append a range of elements from an array of Longs | 
|  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 | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public void append(java.lang.Long newLong)
Long
append in interface ArrayBuilder<java.lang.Long>append in class PowerlessArray.Builder<java.lang.Long>newLong - the element to add
java.lang.NegativeArraySizeException - if the resulting internal array
   would exceed the maximum length of a Java array.  The builder is
   unmodified.public void append(java.lang.Long[] newLongs)
Longs
append in interface ArrayBuilder<java.lang.Long>append in class PowerlessArray.Builder<java.lang.Long>newLongs - the elements to add
java.lang.IndexOutOfBoundsException - if the resulting internal array
   would exceed the maximum length of a Java array.  The builder is
   unmodified.
public void append(java.lang.Long[] newLongs,
                   int off,
                   int len)
Longs
append in interface ArrayBuilder<java.lang.Long>append in class PowerlessArray.Builder<java.lang.Long>newLongs - the array to add elements fromoff - the index of the first element to addlen - the number of elements to add
java.lang.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<java.lang.Long>snapshot in class PowerlessArray.Builder<java.lang.Long>LongArray containing the elements so farpublic void append(long newLong)
long
newLong - the element to add
java.lang.NegativeArraySizeException - if the resulting internal array
   would exceed the maximum length of a Java array.  The builder is
   unmodified.public void append(long[] newLongs)
longs
newLongs - the elements to add
java.lang.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)
longs
newLongs - the array to add elements fromoff - the index of the first element to addlen - the number of elements to add
java.lang.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.| 
 | ref_send API 2.17 defensive programming in Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.