@Test public void shouldForEachOrderedInt() { final List<Integer> expected = new ArrayList<>(); IntStream.range(0, 20).forEachOrdered(expected::add); list.addAll(expected); final List<Integer> actual = new ArrayList<>(); list.forEachOrderedInt(actual::add); assertThat(actual, is(expected)); }
public void forEachOrderedInt(final IntConsumer action) { for (@DoNotSub int i = 0; i < size; i++) { action.accept(elements[i]); } }
IntArrayList extends AbstractList<Integer> implements List<Integer>, RandomAccess, Serializable { public void forEachOrderedInt(final IntConsumer action) { for (@DoNotSub int i = 0; i < size; i++) { action.accept(elements[i]); } } }
IntArrayList extends AbstractList<Integer> implements List<Integer>, RandomAccess, Serializable { public void forEachOrderedInt(final IntConsumer action) { for (@DoNotSub int i = 0; i < size; i++) { action.accept(elements[i]); } } IntArrayList();  IntArrayList(
        @DoNotSub final int initialCapacity,
        final int nullValue);  IntArrayList(
        final int[] initialElements,
        @DoNotSub final int initialSize,
        final int nullValue); }
IntArrayList extends AbstractList<Integer> implements List<Integer>, RandomAccess, Serializable { public void forEachOrderedInt(final IntConsumer action) { for (@DoNotSub int i = 0; i < size; i++) { action.accept(elements[i]); } } IntArrayList();  IntArrayList(
        @DoNotSub final int initialCapacity,
        final int nullValue);  IntArrayList(
        final int[] initialElements,
        @DoNotSub final int initialSize,
        final int nullValue); void wrap(
        final int[] initialElements,
        final @DoNotSub int initialSize); int nullValue(); @DoNotSub int size(); @DoNotSub int capacity(); void clear(); void trimToSize(); Integer get(
        @DoNotSub final int index); int getInt(
        @DoNotSub final int index); boolean add(final Integer element); boolean addInt(final int element); void add(
        @DoNotSub final int index,
        final Integer element); void addInt(
        @DoNotSub final int index,
        final int element); Integer set(
        @DoNotSub final int index,
        final Integer element); int setInt(
        @DoNotSub final int index,
        final int element); boolean containsInt(final int value); @DoNotSub int indexOf(
        final int value); @DoNotSub int lastIndexOf(
        final int value); Integer remove(
        @DoNotSub final int index); int fastUnorderedRemove(
        @DoNotSub final int index); boolean removeInt(final int value); boolean fastUnorderedRemoveInt(final int value); void pushInt(final int element); int popInt(); void forEachOrderedInt(final IntConsumer action); IntStream intStream(); int[] toIntArray(); int[] toIntArray(final int[] dst); void ensureCapacity(@DoNotSub final int requiredCapacity); boolean equals(final IntArrayList that); boolean equals(final Object other); @DoNotSub int hashCode(); void forEach(final Consumer<? super Integer> action); void forEachInt(final IntConsumer action); String toString(); }
IntArrayList extends AbstractList<Integer> implements List<Integer>, RandomAccess, Serializable { public void forEachOrderedInt(final IntConsumer action) { for (@DoNotSub int i = 0; i < size; i++) { action.accept(elements[i]); } } IntArrayList();  IntArrayList(
        @DoNotSub final int initialCapacity,
        final int nullValue);  IntArrayList(
        final int[] initialElements,
        @DoNotSub final int initialSize,
        final int nullValue); void wrap(
        final int[] initialElements,
        final @DoNotSub int initialSize); int nullValue(); @DoNotSub int size(); @DoNotSub int capacity(); void clear(); void trimToSize(); Integer get(
        @DoNotSub final int index); int getInt(
        @DoNotSub final int index); boolean add(final Integer element); boolean addInt(final int element); void add(
        @DoNotSub final int index,
        final Integer element); void addInt(
        @DoNotSub final int index,
        final int element); Integer set(
        @DoNotSub final int index,
        final Integer element); int setInt(
        @DoNotSub final int index,
        final int element); boolean containsInt(final int value); @DoNotSub int indexOf(
        final int value); @DoNotSub int lastIndexOf(
        final int value); Integer remove(
        @DoNotSub final int index); int fastUnorderedRemove(
        @DoNotSub final int index); boolean removeInt(final int value); boolean fastUnorderedRemoveInt(final int value); void pushInt(final int element); int popInt(); void forEachOrderedInt(final IntConsumer action); IntStream intStream(); int[] toIntArray(); int[] toIntArray(final int[] dst); void ensureCapacity(@DoNotSub final int requiredCapacity); boolean equals(final IntArrayList that); boolean equals(final Object other); @DoNotSub int hashCode(); void forEach(final Consumer<? super Integer> action); void forEachInt(final IntConsumer action); String toString(); static final int DEFAULT_NULL_VALUE; @DoNotSub static final int INITIAL_CAPACITY; }