public static ImmutableLongArray copyOf(LongStream stream) {
    // Note this uses very different growth behavior from copyOf(Iterable) and the builder.
    long[] array = stream.toArray();
    return (array.length == 0) ? EMPTY : new ImmutableLongArray(array);
  }
public static ImmutableLongArray copyOf(LongStream stream) {
    
    long[] array = stream.toArray();
    return (array.length == 0) ? EMPTY : new ImmutableLongArray(array);
  }
public static ImmutableLongArray copyOf ( LongStream stream ) { // Note this uses very different growth behavior from copyOf(Iterable) and the builder. long [ ] array = stream . toArray ( ) ; return ( array . length == 0 ) ? EMPTY : new ImmutableLongArray ( array ) ; }
Returns an immutable array containing all the values from {@code stream}, in order.
Returns an immutable array containing all the values from {