/**
  * Returns an {@link ObjectArray} containing the elements in this builder.
  *
  * @return object array
  */
 public ObjectArray<E> freeze() {
   return builder.isEmpty() ? ObjectArray.<E>empty() : new ObjectArray<>(builder.freeze());
 }