Class FloatList

    • Constructor Detail

      • 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 Detail

      • 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 java.util.Iterator<java.lang.Float> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Float>
      • create

        public static FloatList create​(JCas jcas,
                                       java.lang.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 java.util.stream.Stream<java.lang.Float> stream()
      • contains

        public boolean contains​(float v)