@Override public boolean tryAdvance(LongConsumer action) { if (buf != null) { if (buf.tryAdvance(action)) return true; buf = null; } cons = action; for (vals = 0; vals == 0; e = e.next(this)) { if (e == null) return false; } if (vals > 1) { buf = ((LongStream.Builder) cons).build().spliterator(); } cons = null; return true; }
/** * Adds an element to the stream being built. * * @implSpec * The default implementation behaves as if: * <pre>{@code * accept(t) * return this; * }</pre> * * @param t the element to add * @return {@code this} builder * @throws IllegalStateException if the builder has already transitioned * to the built state */ default Builder add(long t) { accept(t); return this; }
public Builder add(Integer value) { valueBuilder.add(value); return this; }
@Override public LongColumn build() { return new LongColumn(id, valueBuilder.build(), metaDataBuilder.build()); }
default Builder add(long t) { accept(t); return this; }
public Builder add(Integer value) { valueBuilder.add(value); return this; }
@Override public Builder add(Long value) { valueBuilder.add(value); return this; }
public Builder addAll(Iterable<Long> values) { for (Long value : values) { this.valueBuilder.add(value); } return this; }
public Builder addAll(Iterable<Long> values) { for (Long value : values) { this.valueBuilder.add(value); } return this; }
@Override public Builder add(Long value) { valueBuilder.add(value); return this; }
@Override public LongColumn build() { return new LongColumn(id, valueBuilder.build(), metaDataBuilder.build()); }