Class FloatList

All Implemented Interfaces:
Cloneable, Iterable<Float>, FeatureStructure
Direct Known Subclasses:
EmptyFloatList, NonEmptyFloatList

public class FloatList extends TOP implements Iterable<Float>
  • Field Details

    • typeIndexID

      public static final int typeIndexID
    • type

      public static final int type
  • Constructor Details

    • FloatList

      protected FloatList()
    • FloatList

      public FloatList(int addr, TOP_Type type)
    • FloatList

      public FloatList(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 float getNthElement(int i)
    • push

      public NonEmptyFloatList push(float 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<Float> iterator()
      Specified by:
      iterator in interface Iterable<Float>