public class EvaluationDetail<T>
extends java.lang.Object
LDClientInterface.boolVariationDetail(String, Boolean)
,
combining the result of a flag evaluation with an explanation of how it was calculated.Constructor and Description |
---|
EvaluationDetail(EvaluationReason reason,
java.lang.Integer variationIndex,
T value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
EvaluationReason |
getReason()
An object describing the main factor that influenced the flag evaluation value.
|
T |
getValue()
The result of the flag evaluation.
|
java.lang.Integer |
getVariationIndex()
The index of the returned value within the flag's list of variations, e.g.
|
int |
hashCode() |
boolean |
isDefaultValue()
Returns true if the flag evaluation returned the default value, rather than one of the flag's
variations.
|
java.lang.String |
toString() |
public EvaluationDetail(EvaluationReason reason, java.lang.Integer variationIndex, T value)
public EvaluationReason getReason()
EvaluationReason
public java.lang.Integer getVariationIndex()
null
if the default value was returned.public T getValue()
variation
method.public boolean isDefaultValue()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object