public static final class IChemFormatMatcher.MatchResult extends Object implements Comparable<IChemFormatMatcher.MatchResult>
Constructor and Description |
---|
IChemFormatMatcher.MatchResult(boolean matched,
IChemFormat format,
int position) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IChemFormatMatcher.MatchResult that)
Compares the match result with another, results with lower position
are ordered before those with higher position.
|
IChemFormat |
format()
What was the format which matched if there was a match (
matched() ). |
boolean |
matched()
Did the chem format match.
|
public IChemFormatMatcher.MatchResult(boolean matched, IChemFormat format, int position)
public boolean matched()
public IChemFormat format()
matched()
).IllegalArgumentException
- there was no matchpublic int compareTo(IChemFormatMatcher.MatchResult that)
compareTo
in interface Comparable<IChemFormatMatcher.MatchResult>
Copyright © 2017. All Rights Reserved.