@API(status=EXPERIMENTAL, since="1.5") public static class SelectorResolver.Resolution extends Object
DiscoverySelector
.
A resolution is either unresolved, contains a match or multiple matches, or a set of selectors.
SelectorResolver
Modifier and Type | Method | Description |
---|---|---|
Set<SelectorResolver.Match> |
getMatches() |
Returns the matches contained by this resolution.
|
Set<? extends DiscoverySelector> |
getSelectors() |
Returns the selectors contained by this resolution.
|
boolean |
isResolved() |
Whether this resolution contains matches or selectors.
|
static SelectorResolver.Resolution |
match(SelectorResolver.Match match) |
Factory for creating a resolution that contains the supplied
Match . |
static SelectorResolver.Resolution |
matches(Set<SelectorResolver.Match> matches) |
Factory for creating a resolution that contains the supplied
Matches . |
static SelectorResolver.Resolution |
selectors(Set<? extends DiscoverySelector> selectors) |
Factory for creating a resolution that contains the supplied
DiscoverySelectors . |
static SelectorResolver.Resolution |
unresolved() |
Factory for creating unresolved resolutions.
|
public static SelectorResolver.Resolution unresolved()
null
public static SelectorResolver.Resolution match(SelectorResolver.Match match)
Match
.match
- the resolved Match
; never null
Match
; never
null
public static SelectorResolver.Resolution matches(Set<SelectorResolver.Match> matches)
Matches
.matches
- the resolved Matches
; never null
or
emptyMatches
;
never null
public static SelectorResolver.Resolution selectors(Set<? extends DiscoverySelector> selectors)
DiscoverySelectors
.selectors
- the resolved DiscoverySelectors
; never
null
or emptyDiscoverySelectors
; never null
public boolean isResolved()
true
if this resolution contains matches or selectorspublic Set<SelectorResolver.Match> getMatches()
null
but potentially emptypublic Set<? extends DiscoverySelector> getSelectors()
null
but potentially emptyCopyright © 2019. All rights reserved.