public static class Decision.Single extends Decision
Decision.Multi, Decision.Single, Decision.TypeToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsALWAYS, NO, THROTTLE, YESEMPTY_PARAMS| コンストラクタと説明 |
|---|
Single() |
Single(Decision.Type type)
Creates a new
Decision.Single decision of a given type |
Single(Decision.Type type,
String label,
String explanation,
Object... explanationParams)
Creates a new
Decision.Single decision of a given type |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 Single()
public Single(Decision.Type type)
Decision.Single decision of a given typetype - Decision.Type of the decisionpublic 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 クラス内 DecisionDecision.Type of this decisionpublic String getExplanation()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.