Class IntegerList

All Implemented Interfaces:
Cloneable, Iterable<Integer>, FeatureStructure
Direct Known Subclasses:
EmptyIntegerList, NonEmptyIntegerList

public class IntegerList extends TOP implements Iterable<Integer>
  • Field Details

    • typeIndexID

      public static final int typeIndexID
    • type

      public static final int type
  • Constructor Details

    • IntegerList

      protected IntegerList()
    • IntegerList

      public IntegerList(int addr, TOP_Type type)
    • IntegerList

      public IntegerList(JCas jcas)
  • Method Details

    • getTypeIndexID

      public int getTypeIndexID()
      Description copied from class: TOP
      used to obtain reference to the TOP_Type instance
      Overrides:
      getTypeIndexID in class TOP
      Returns:
      the type array index
    • getNthElement

      public int getNthElement(int i)
    • push

      public NonEmptyIntegerList push(int item)
      pushes item onto front of this list
      Parameters:
      item - the item to push onto the list
      Returns:
      the new list, with this item as the head value of the first element
    • iterator

      public Iterator<Integer> iterator()
      Specified by:
      iterator in interface Iterable<Integer>