/** * 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; }
/** * 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; }