public class NormalCharacterPattern extends Object implements CharacterPattern
| Constructor and Description |
|---|
NormalCharacterPattern() |
| Modifier and Type | Method and Description |
|---|---|
Key |
getResult(List<Character> matching) |
boolean |
isCompleteMatch(List<Character> currentMatching)
Returns true if this pattern is a perfect match (all characters matching
and the pattern has no more characters to match) of the supplied characters
|
boolean |
matches(List<Character> currentMatching)
Returns true if this pattern partially or fully matches the supplied
characters
|
public Key getResult(List<Character> matching)
getResult in interface CharacterPatternKey that this pattern representspublic boolean isCompleteMatch(List<Character> currentMatching)
CharacterPatternisCompleteMatch in interface CharacterPatternpublic boolean matches(List<Character> currentMatching)
CharacterPatternmatches in interface CharacterPatternCopyright © 2015. All Rights Reserved.