public static class Decision.Single extends Decision
Decision.Multi, Decision.Single, Decision.TypeToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsALWAYS, NO, THROTTLE, YESEMPTY_PARAMS| Constructor and Description |
|---|
Decision.Single() |
Decision.Single(Decision.Type type)
Creates a new
Decision.Single decision of a given type |
Decision.Single(Decision.Type type,
String label,
String explanation,
Object... explanationParams)
Creates a new
Decision.Single decision of a given type |
| Modifier and Type | Method and Description |
|---|---|
String |
getExplanation()
Returns the explanation string, fully formatted.
|
String |
label() |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
Decision.Type |
type()
Get the
Decision.Type of this decision |
public Decision.Single()
public Decision.Single(Decision.Type type)
Decision.Single decision of a given typetype - Decision.Type of the decisionpublic Decision.Single(Decision.Type type, String label, String explanation, Object... explanationParams)
Decision.Single decision of a given typetype - Decision.Type of the decisionexplanation - An explanation of this DecisionexplanationParams - A set of additional parameterspublic Decision.Type type()
DecisionDecision.Type of this decisiontype in class DecisionDecision.Type of this decisionpublic String getExplanation()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.