public interface SimpleFinder<OT> extends Finder<OT>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_MATCHES |
| Modifier and Type | Method and Description |
|---|---|
long |
countMatches(Pattern p,
int maxAllowed)
Count the number of available matches, but throw an exception if count goes strictly
higher than maxAllowed.
|
List<OT> |
findAllMatches(Pattern p,
int minAllowed,
int maxAllowed)
Find all matches, and return in an arbitrary order, but will throw an exception
if available number of matches for the pattern is not within closed (inclusive)
interval [minAllowed, maxAllowed].
|
OT |
findFirstMatch(Pattern p,
int minAllowed,
int maxAllowed)
Seeks only one match, chosen arbitrarily from available matches,
but will throw an exception if available number of
matches for the pattern is not within closed (inclusive) interval
[minAllowed, maxAllowed].
|
deliverMatchesUntilDone, killDeliverySequencestatic final int MAX_MATCHES
OT findFirstMatch(Pattern p, int minAllowed, int maxAllowed) throws Exception
p - pattern which must be matched by the registered object descriptions.minAllowed - the minimum number of matches allowed for this Pattern.maxAllowed - the maximum number of matches allowed for this Pattern.ExceptionList<OT> findAllMatches(Pattern p, int minAllowed, int maxAllowed) throws Exception
p - pattern which must be matched by the registered object description. *minAllowed - minimum number of matches allowed for this Pattern.maxAllowed - maximum number of matches allowed for this Pattern.Exceptionlong countMatches(Pattern p, int maxAllowed) throws Exception
maxAllowed - maximum number of matches allowed for this Pattern.ExceptionCopyright © 2010-2015. All Rights Reserved.