|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimpleFinder<OT>
Additional Finder methods which do not require the user to supply a Receiver.
| Field Summary | |
|---|---|
static int |
MAX_MATCHES
|
| Method Summary | |
|---|---|
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]. |
| Methods inherited from interface org.appdapter.api.registry.Finder |
|---|
deliverMatchesUntilDone, killDeliverySequence |
| Field Detail |
|---|
static final int MAX_MATCHES
| Method Detail |
|---|
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.
Exception
List<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.
Exception
long countMatches(Pattern p,
int maxAllowed)
throws Exception
maxAllowed - maximum number of matches allowed for this Pattern.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||