public static final class Edits.Iterator extends Object
Edits.getCoarseIterator()
,
Edits.getFineIterator()
Modifier and Type | Method and Description |
---|---|
int |
destinationIndex() |
boolean |
findSourceIndex(int i)
Finds the edit that contains the source index.
|
boolean |
hasChange() |
int |
newLength() |
boolean |
next()
Advances to the next edit.
|
int |
oldLength() |
int |
replacementIndex() |
int |
sourceIndex() |
public boolean next()
public boolean findSourceIndex(int i)
The iterator state before this search logically does not matter. (It may affect the performance of the search.)
The iterator state after this search is undefined if the source index is out of bounds for the source string.
i
- source indexpublic boolean hasChange()
public int oldLength()
public int newLength()
public int sourceIndex()
public int replacementIndex()
public int destinationIndex()
Copyright ? 2016 Unicode, Inc. and others.