Interface IntView

All Superinterfaces:
Iterable<Integer>, View<Integer>
All Known Subinterfaces:
IntSlice, MutableIntSlice
All Known Implementing Classes:
ArrayIntSlice, ArrayIntView, EmptyIntSlice, EmptyIntView, MutableArrayIntSlice

@API(status=STABLE) public interface IntView extends View<Integer>
A primitive specialization for int of View.
Since:
03/09/2022
  • Method Details

    • empty

      static IntView empty()
      Creates an empty int view with no elements.
      Returns:
      An empty int view with no elements.
    • of

      @NotNull static @NotNull IntView of(int... ref)
    • intIterator

      @NotNull @NotNull IntIterator intIterator()
      Creates a new IntIterator from the elements referenced by this slice instance.
      Returns:
      A new IntIterator from the elements referenced by this slice instance.
    • intSpliterator

      @NotNull Spliterator.OfInt intSpliterator()
      Creates a new Spliterator.OfInt from the elements referenced by this slice instance.
      Returns:
      A new Spliterator.OfInt from the elements referenced by this slice instance.
    • toIntArray

      int[] toIntArray()
      Creates a new int array with the appropriate size, and copies all values into new newly created array using System.arraycopy(Object, int, Object, int, int).
      Returns:
      A new array containing all elements referenced by this slice instance.
    • intStream

      @NotNull default @NotNull IntStream intStream()
      Creates a new non-parallel IntStream for the elements referenced by this slice instance.
      Returns:
      A new IntStream instance of all elements referenced by this slice instance.
    • parallelIntStream

      @NotNull default @NotNull IntStream parallelIntStream()
      Creates a new parallel IntStream for the elements referenced by this slice instance.
      Returns:
      A new IntStream instance of all elements referenced by this slice instance.
    • iterator

      @NotNull default @NotNull Iterator<Integer> iterator()
      Specified by:
      iterator in interface Iterable<Integer>