Of course! This makes a lot of sense. Thank you for the
clarification/reminder. I am not used to working with this kind of
iterator. I will have to think about this a bit - but I am grateful to
have options. I (think I) want a method with this signature:
public Annotation get(JCas jCas, Annotation annotation, int relativePosition)
If I pass in -50 to this method I would have to call getPrevious() 50
times to get to where I am going. On the other hand, if I am calling
the method with -50, then I am probably calling it with -49, -48, etc.
I will revisit how I am thinking about structuring my code.
Regards,
Philip