@Test public void testStream() { DoubleList list = new DoubleList(); assertThat(list.stream().toArray()).isEmpty(); list.add(10d); list.add(5d); assertThat(list.stream().toArray()).containsExactly(10d, 5d); list.clear(); assertThat(list.stream().toArray()).isEmpty(); }
public DoubleStream stream() { return Arrays.stream(_array, 0, _limit); }
DoubleList { public DoubleStream stream() { return Arrays.stream(_array, 0, _limit); } }
DoubleList { public DoubleStream stream() { return Arrays.stream(_array, 0, _limit); } DoubleList();  DoubleList(final int initialCapacity);  DoubleList(final DoubleList list);  DoubleList(final int initialCapacity, double fillvalue); }
DoubleList { public DoubleStream stream() { return Arrays.stream(_array, 0, _limit); } DoubleList();  DoubleList(final int initialCapacity);  DoubleList(final DoubleList list);  DoubleList(final int initialCapacity, double fillvalue); void add(final int index, final double value); boolean add(final double value); boolean addAll(final DoubleList c); boolean addAll(final int index, final DoubleList c); void clear(); boolean contains(final double o); boolean containsAll(final DoubleList c); @Override boolean equals(final Object o); double get(final int index); @Override int hashCode(); int indexOf(final double o); boolean isEmpty(); int lastIndexOf(final double o); double remove(final int index); boolean removeValue(final double o); boolean removeAll(final DoubleList c); boolean retainAll(final DoubleList c); double set(final int index, final double element); int size(); double[] toArray(); double[] toArray(final double[] a); DoubleStream stream(); void replaceAll(DoubleUnaryOperator operator); void sort(); Spliterator.OfDouble spliterator(); boolean removeIf(DoublePredicate filter); void forEach(DoubleConsumer action); }
DoubleList { public DoubleStream stream() { return Arrays.stream(_array, 0, _limit); } DoubleList();  DoubleList(final int initialCapacity);  DoubleList(final DoubleList list);  DoubleList(final int initialCapacity, double fillvalue); void add(final int index, final double value); boolean add(final double value); boolean addAll(final DoubleList c); boolean addAll(final int index, final DoubleList c); void clear(); boolean contains(final double o); boolean containsAll(final DoubleList c); @Override boolean equals(final Object o); double get(final int index); @Override int hashCode(); int indexOf(final double o); boolean isEmpty(); int lastIndexOf(final double o); double remove(final int index); boolean removeValue(final double o); boolean removeAll(final DoubleList c); boolean retainAll(final DoubleList c); double set(final int index, final double element); int size(); double[] toArray(); double[] toArray(final double[] a); DoubleStream stream(); void replaceAll(DoubleUnaryOperator operator); void sort(); Spliterator.OfDouble spliterator(); boolean removeIf(DoublePredicate filter); void forEach(DoubleConsumer action);  }