public final class CodeMatches extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ADDED_MATCH |
static CodeMatches |
NO_CODES |
static int |
NO_MATCH |
static CodeMatches |
SAME_CODES |
| Constructor and Description |
|---|
CodeMatches(TextFragment from,
TextFragment to) |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getFromMatches() |
int |
getFromMismatchCount() |
Iterable<Integer> |
getFromMismatchIterator() |
int[] |
getToMatches() |
int |
getToMatchIndex(int toIndex) |
int |
getToMismatchCount() |
Iterable<Integer> |
getToMismatchIterator() |
boolean |
hasFromMismatch() |
boolean |
hasToMismatch() |
boolean |
isFromIsolated(int index) |
boolean |
isToIsolated(int index) |
boolean |
isToMatch(int index) |
void |
setFromMatch(int index,
int id) |
void |
setToMatch(int index,
int id) |
public static int NO_MATCH
public static int ADDED_MATCH
public static CodeMatches NO_CODES
public static CodeMatches SAME_CODES
public CodeMatches(TextFragment from, TextFragment to)
public int[] getFromMatches()
public int[] getToMatches()
public void setFromMatch(int index,
int id)
public void setToMatch(int index,
int id)
public int getToMatchIndex(int toIndex)
public boolean isToMatch(int index)
public boolean isToIsolated(int index)
public boolean isFromIsolated(int index)
public boolean hasFromMismatch()
public boolean hasToMismatch()
public int getFromMismatchCount()
public int getToMismatchCount()
Copyright © 2022. All rights reserved.