| Package | Description |
|---|---|
| org.appdapter.api.registry |
Our Registry system allows objects to be registered and looked up in a type-safe manner,
with optionally guarded result size, and flexibility in result delivery to client code.
|
| org.appdapter.registry.basic |
The "Basic" Registry system provides a simple implementation of the
Registry interfaces and concepts.
|
| Modifier and Type | Field and Description |
|---|---|
Pattern |
ResultSequence.myPattern |
| Modifier and Type | Method and Description |
|---|---|
long |
SimpleFinder.countMatches(Pattern p,
int maxAllowed)
Count the number of available matches, but throw an exception if count goes strictly
higher than maxAllowed.
|
ResultSequence |
Finder.deliverMatchesUntilDone(Pattern p,
Receiver<OC> r) |
<OT> List<OT> |
SimpleRegistry.findAllMatches(Class<OT> objClaz,
Pattern p,
int minAllowed,
int maxAllowed) |
List<OT> |
SimpleFinder.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 |
SimpleFinder.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].
|
<OT> OT |
SimpleRegistry.findOptionalFirstMatch(Class<OT> objClaz,
Pattern p) |
<OT> OT |
SimpleRegistry.findOptionalUniqueMatch(Class<OT> objClaz,
Pattern p) |
<OT> OT |
SimpleRegistry.findRequiredUniqueMatch(Class<OT> objClaz,
Pattern p) |
| Modifier and Type | Class and Description |
|---|---|
class |
BasicPattern
A BasicPattern simply matches candidate desciptions for ".equals()" with a single target description.
|
| Modifier and Type | Method and Description |
|---|---|
protected <OT> List<OT> |
BasicRegistry.brutishlyCollectAllMatches(Class<OT> objClz,
Pattern p) |
protected List<OT> |
BasicFinder.collectMatches(Pattern p) |
long |
BasicFinder.countMatches(Pattern p,
int maxAllowed) |
ResultSequence<OT> |
BasicFinder.deliverMatchesUntilDone(Pattern p,
Receiver<OT> r) |
<OT> List<OT> |
BasicRegistry.findAllMatches(Class<OT> objClaz,
Pattern p,
int minAllowed,
int maxAllowed) |
List<OT> |
BasicFinder.findAllMatches(Pattern p,
int minAllowed,
int maxAllowed) |
OT |
BasicFinder.findFirstMatch(Pattern p,
int minAllowed,
int maxAllowed) |
<OT> OT |
BasicRegistry.findOptionalFirstMatch(Class<OT> objClaz,
Pattern p) |
<OT> OT |
BasicRegistry.findOptionalUniqueMatch(Class<OT> objClaz,
Pattern p) |
<OT> OT |
BasicRegistry.findRequiredUniqueMatch(Class<OT> objClaz,
Pattern p) |
protected ResultSequence<OT> |
BasicFinder.makeResultSequence(Pattern p,
Receiver<OT> r) |
protected void |
BasicFinder.verifyMatchCount(int matchCount,
int minAllowed,
int maxAllowed,
Pattern patForError) |
Copyright © 2010-2015. All Rights Reserved.