public static class Decision.Multi extends Decision
Decision.Multi, Decision.Single, Decision.TypeToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>ALWAYS, NO, THROTTLE, YESEMPTY_PARAMS| Constructor and Description |
|---|
Multi() |
| Modifier and Type | Method and Description |
|---|---|
Decision.Multi |
add(Decision decision)
Add a decision to this
Decision.Multidecision instance |
boolean |
equals(java.lang.Object object) |
java.util.List<Decision> |
getDecisions()
Return the list of all decisions that make up this decision
|
java.lang.String |
getExplanation()
Get the explanation for this decision.
|
int |
hashCode() |
java.lang.String |
label()
Get the description label for this decision.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
Decision.Type |
type()
Get the
Decision.Type of this decision |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
readFrom, singleclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic Decision.Multi add(Decision decision)
Decision.Multidecision instancedecision - Decision to addDecision.Multidecision instance with the given decision addedpublic Decision.Type type()
DecisionDecision.Type of this decisiontype in class DecisionDecision.Type of this decision@Nullable public java.lang.String label()
Decision@Nullable public java.lang.String getExplanation()
DecisiongetExplanation in class Decisionpublic java.util.List<Decision> getDecisions()
DecisiongetDecisions in class Decisionpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablejava.io.IOException