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 CharacterPattern
Key
that this pattern representspublic boolean isCompleteMatch(List<Character> currentMatching)
CharacterPattern
isCompleteMatch
in interface CharacterPattern
public boolean matches(List<Character> currentMatching)
CharacterPattern
matches
in interface CharacterPattern
Copyright © 2015. All Rights Reserved.