Class NonEmptyFloatList

All Implemented Interfaces:
Cloneable, Iterable<Float>, FeatureStructure, FeatureStructureImpl, CommonList, NonEmptyList

public class NonEmptyFloatList extends FloatList implements NonEmptyList
  • Field Details

  • Constructor Details

    • NonEmptyFloatList

      protected NonEmptyFloatList()
    • NonEmptyFloatList

      public NonEmptyFloatList(JCas jcas)
    • NonEmptyFloatList

      public NonEmptyFloatList(TypeImpl t, CASImpl c)
      used by generator Make a new AnnotationBase
      Parameters:
      c - -
      t - -
    • NonEmptyFloatList

      public NonEmptyFloatList(JCas jcas, float v, FloatList tail)
      Generate a NonEmpty node with the specified head and tail
      Parameters:
      jcas - -
      v - -
      tail - -
    • NonEmptyFloatList

      public NonEmptyFloatList(JCas jcas, float v)
      Generate a NonEmpty node with the specified head with the empty node as the tail
      Parameters:
      jcas - -
      v - -
  • Method Details

    • getTypeIndexID

      public int getTypeIndexID()
      Overrides:
      getTypeIndexID in class TOP
      Returns:
      the type array index
    • getHead

      public float getHead()
    • setHead

      public void setHead(float v)
    • getTail

      public FloatList getTail()
    • setTail

      public void setTail(FloatList v)
    • setTail

      public void setTail(CommonList v)
      Description copied from interface: CommonList
      sets the tail of this node
      Specified by:
      setTail in interface CommonList
      Parameters:
      v - the tail
    • get_headAsString

      public String get_headAsString()
      Description copied from interface: CommonList
      Internal use overridden in nonempty nodes Return the head value of a list as a string suitable for serialization. For FeatureStructure values, return the _id.
      Specified by:
      get_headAsString in interface CommonList
      Returns:
      value suitable for serialization
    • set_headFromString

      public void set_headFromString(String v)
      Description copied from interface: CommonList
      Internal use overridden in nonempty nodes used when deserializing
      Specified by:
      set_headFromString in interface CommonList
      Parameters:
      v - value to set, as a string
    • iterator

      public Iterator<Float> iterator()
      Specified by:
      iterator in interface Iterable<Float>
      Overrides:
      iterator in class FloatList