TextElementIterator
Iterator that tracks its current position in a TextElement list.
Unlike standard ListIterator, this class provides direct access to the current index via currentIndex, which returns the index of the element that was returned by the most recent call to next or previous.
This iterator is a replacement for the internal ArrayIterator class, with clearer semantics and better naming. It correctly handles bidirectional iteration by maintaining the current index internally.
Since
3.28.0
Functions
Link copied to clipboard
Link copied to clipboard
Returns the index of the element that was returned by the most recent call to next or previous.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard