Class FloatList

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

public abstract class FloatList extends TOP implements CommonList, Iterable<Float>
  • Constructor Details

    • FloatList

      protected FloatList()
    • FloatList

      public FloatList(JCas jcas)
    • FloatList

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

    • getNthElement

      public float getNthElement(int i)
    • createNonEmptyNode

      public NonEmptyFloatList createNonEmptyNode()
      Description copied from interface: CommonList
      Creates a non empty node
      Specified by:
      createNonEmptyNode in interface CommonList
      Returns:
      a new non empty node
    • 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>
    • emptyList

      public EmptyFloatList emptyList()
      Specified by:
      emptyList in interface CommonList
      Returns:
      a shared instance of the empty node.
    • create

      public static FloatList create(JCas jcas, Float[] a)
      Create an FloatList from an existing array of Feature Structures
      Parameters:
      jcas - the JCas to use
      a - the array of Floats to populate the list with
      Returns:
      an FloatList, with the elements from the array
    • stream

      public Stream<Float> stream()
    • contains

      public boolean contains(float v)