public class ContextDecision extends java.lang.Object implements Explanation
Explanation.Code| Constructor and Description |
|---|
ContextDecision(Explanation.Code id,
boolean granted) |
ContextDecision(Explanation.Code id,
boolean granted,
java.util.List<ContextEvaluation> evaluations)
Construct a decision.
|
| Modifier and Type | Method and Description |
|---|---|
void |
describe(java.io.PrintStream out) |
Explanation.Code |
getCode() |
boolean |
granted() |
java.lang.String |
toString() |
public ContextDecision(Explanation.Code id, boolean granted, java.util.List<ContextEvaluation> evaluations)
id - The decision code id.granted - Is the decision granted or not.evaluations - A list of evaluations that includes the final decision.public ContextDecision(Explanation.Code id, boolean granted)
public boolean granted()
public Explanation.Code getCode()
getCode in interface Explanationpublic void describe(java.io.PrintStream out)
describe in interface Explanationpublic java.lang.String toString()
toString in class java.lang.Object