コード例 #1
0
 /**
  * Appends another {@link ObjectArray} to the array.
  *
  * @param other array to append
  * @return this builder for convenience
  */
 public ObjectArrayBuilder<E> append(final ObjectArray<E> other) {
   builder.append(other.root);
   return this;
 }
コード例 #2
0
 /**
  * Appends a single element to the array.
  *
  * @param elem element to append
  * @return this builder for convenience
  */
 public ObjectArrayBuilder<E> append(final E elem) {
   builder.append(new ObjectArray.Leaf<>(elem));
   return this;
 }