copy method Null safety

CharacterRange copy()

Creates a copy of this CharacterRange.

The copy is in the exact same state as this iterator. Can be used to iterate the following characters more than once at the same time. To simply rewind an iterator, remember the start or end position and use reset to reset the iterator to that position.

Implementation

CharacterRange copy();