AnnotationIteratorPair (Apache OpenNLP UIMA Annotators 1.9.5 API)
Date: 2026-06-18

opennlp.uima.util

## Class AnnotationIteratorPair

- java.lang.Object
- - opennlp.uima.util.AnnotationIteratorPair

-     public final class AnnotationIteratorPair
      extends Object

  A pair of a UIMA annotation and an annotation iterator.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AnnotationIteratorPair(org.apache.uima.cas.text.AnnotationFS a, Iterable<org.apache.uima.cas.text.AnnotationFS> it)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.apache.uima.cas.text.AnnotationFS` | `getAnnotation()`
    `Iterable<org.apache.uima.cas.text.AnnotationFS>` | `getSubIterator()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AnnotationIteratorPair

          public AnnotationIteratorPair(org.apache.uima.cas.text.AnnotationFS a,
                                        Iterable<org.apache.uima.cas.text.AnnotationFS> it)

  - ### Method Detail

    - #### getAnnotation

          public org.apache.uima.cas.text.AnnotationFS getAnnotation()

    - #### getSubIterator

          public Iterable<org.apache.uima.cas.text.AnnotationFS> getSubIterator()

Copyright © 2026 The Apache Software Foundation. All rights reserved.