TNode - Node typepublic static class TargetSelector.Result<TNode>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.util.List<TNode> |
candidates
All candidates returned by the query
|
TNode |
exactMatch
Any exact match returned by the query
|
| Modifier and Type | Method and Description |
|---|---|
TNode |
getSingleResult(boolean strict)
Get only a single result from this handle.
|
public final TNode exactMatch
public final java.util.List<TNode> candidates
public TNode getSingleResult(boolean strict)
IllegalStateException is thrown. If no results are found then
the exception is also thrown.strict - True to only return the first (non-exact) result
if exactly one result was found. If more than one
candidate was found, throws IllegalStateException