DiscoveryIssueReporter defines the API for reporting
DiscoveryIssues.
This interface is not intended to be implemented by clients.
SelectorResolver.Context
| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public static DiscoveryIssueReporter | collecting(Collection<? super DiscoveryIssue>
the collection to add issues to; never collection)nullCreate a new |
| public static DiscoveryIssueReporter | consuming(Consumer<? super DiscoveryIssue>
the consumer to report issues to; never consumer)nullCreate a new |
| public default <T> DiscoveryIssueReporter. | Returns: a newCondition; never nullthe predicate to test; never predicate, Function<T, DiscoveryIssue> nullthe function to create the issue with; never issueCreator)nullCreate a |
| public static DiscoveryIssueReporter | deduplicating(DiscoveryIssueReporter
the delegate to forward issues to; never delegate)nullCreate a new |
| public static DiscoveryIssueReporter | forwarding(EngineDiscoveryListener
the listener to report issues to; never
engineDiscoveryListener, UniqueId nullthe unique identifier of the engine; never engineId)nullCreate a new |
| public default void | reportIssue(DiscoveryIssue.
Build the supplied |
| public void |
| collecting | back to summary |
|---|---|
| public static DiscoveryIssueReporter collecting(Collection<? super DiscoveryIssue> collection) Create a new
| |
| consuming | back to summary |
|---|---|
| public static DiscoveryIssueReporter consuming(Consumer<? super DiscoveryIssue> consumer) Create a new
| |
| createReportingCondition | back to summary |
|---|---|
| public default <T> DiscoveryIssueReporter. Create a
| |
| deduplicating | back to summary |
|---|---|
| public static DiscoveryIssueReporter deduplicating(DiscoveryIssueReporter delegate) Create a new The implementation returned by this method is not thread-safe.
| |
| forwarding | back to summary |
|---|---|
| public static DiscoveryIssueReporter forwarding(EngineDiscoveryListener engineDiscoveryListener, UniqueId engineId) Create a new
| |
| reportIssue | back to summary |
|---|---|
| public default void reportIssue(DiscoveryIssue. Build the supplied | |
| reportIssue | back to summary |
|---|---|
| public void reportIssue(DiscoveryIssue issue) Report the supplied | |
Condition is a union of Predicate and Consumer.
Instances of this type may be used as Predicates or
Consumers. For example, a Condition may be
passed to java. if it is used
for filtering, or to java. if it
is only used for reporting or other side effects.
This interface is not intended to be implemented by clients.
| Modifier and Type | Method and Description |
|---|---|
| public static <T> DiscoveryIssueReporter. | |
| public default DiscoveryIssueReporter. | Returns: the composed condition; nevernullReturn a composed condition that represents a logical AND of this and the supplied condition. |
| public boolean | |
| public default Consumer | |
| public default Predicate |
| alwaysSatisfied | back to summary |
|---|---|
| public static <T> DiscoveryIssueReporter. Create a | |
| and | back to summary |
|---|---|
| public default DiscoveryIssueReporter. Return a composed condition that represents a logical AND of this and the supplied condition. The default implementation avoids short-circuiting so
both conditions will be evaluated even if this condition
returns
| |
| check | back to summary |
|---|---|
| public boolean check(T value) Evaluate this condition to potentially report an issue. | |
| toConsumer | back to summary |
|---|---|
| public default Consumer Returns this condition as a | |
| toPredicate | back to summary |
|---|---|
| public default Predicate Returns this condition as a | |