Interface List_of_ints

All Superinterfaces:
Iterable<Integer>

public interface List_of_ints extends Iterable<Integer>
a List API that returns ints instead of T
  • Method Details

    • size

      int size()
    • isEmpty

      default boolean isEmpty()
    • contains

      default boolean contains(int i)
    • toArray

      int[] toArray()
    • toArrayMinCopy

      int[] toArrayMinCopy()
      Avoid copying, return the original array, if start/end offsets not in use
      Returns:
      -
    • add

      boolean add(int i)
    • remove

      boolean remove(int i)
    • clear

      void clear()
    • get

      int get(int index)
    • set

      int set(int index, int element)
    • add

      void add(int index, int element)
    • removeAtIndex

      int removeAtIndex(int index)
    • indexOf

      int indexOf(int i)
    • lastIndexOf

      int lastIndexOf(int i)
    • subList

      List_of_ints subList(int fromIndex, int toIndex)
    • iterator

      Specified by:
      iterator in interface Iterable<Integer>
    • intListIterator

      org.apache.uima.internal.util.IntListIterator intListIterator()
    • copyFromArray

      void copyFromArray(int[] src, int srcPos, int destPos, int length)
    • copyToArray

      void copyToArray(int srcPos, int[] dest, int destPos, int length)
    • sort

      void sort()
    • EMPTY_LIST

      static List_of_ints EMPTY_LIST()
    • newInstance

      static List_of_ints newInstance(int[] ia)
    • newInstance

      static List_of_ints newInstance(int[] ia, int start, int end)