Package com.flagsmith.flagengine
Class EvaluationResult
java.lang.Object
com.flagsmith.flagengine.EvaluationResult
EvaluationResult
Evaluation result object containing the used context, flag evaluation results, and segments used in the evaluation.
-
Constructor Summary
ConstructorsConstructorDescriptionNo args constructor for use in serializationEvaluationResult(EvaluationResult source) EvaluationResult(Flags flags, List<SegmentResult> segments) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFlags()FlagsSegmentsinthashCode()voidsetAdditionalProperty(String name, Object value) voidFlagsvoidsetSegments(List<SegmentResult> segments) SegmentstoString()withAdditionalProperty(String name, Object value) withSegments(List<SegmentResult> segments)
-
Constructor Details
-
EvaluationResult
public EvaluationResult()No args constructor for use in serialization -
EvaluationResult
- Parameters:
source- the object being copied
-
EvaluationResult
- Parameters:
flags- Flags. Feature flags evaluated for the context, mapped by feature names.segments- Segments. List of segments which the provided context belongs to.
-
-
Method Details
-
getFlags
FlagsFeature flags evaluated for the context, mapped by feature names. (Required)
-
setFlags
FlagsFeature flags evaluated for the context, mapped by feature names. (Required)
-
withFlags
-
getSegments
SegmentsList of segments which the provided context belongs to. (Required)
-
setSegments
SegmentsList of segments which the provided context belongs to. (Required)
-
withSegments
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-