Package com.launchdarkly.sdk.android
Class DataModel.Flag
- java.lang.Object
-
- com.launchdarkly.sdk.android.DataModel.Flag
-
- Enclosing class:
- DataModel
public static final class DataModel.Flag extends java.lang.Object
Represents the state of a feature flag evaluation received from LaunchDarkly.
-
-
Constructor Summary
Constructors Constructor Description Flag(java.lang.String key, LDValue value, int version, java.lang.Integer flagVersion, java.lang.Integer variation, boolean trackEvents, boolean trackReason, java.lang.Long debugEventsUntilDate, EvaluationReason reason)
Constructs an instance, specifying all properties.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataModel.Flag
deletedItemPlaceholder(java.lang.String key, int version)
boolean
equals(java.lang.Object other)
static DataModel.Flag
fromJson(java.lang.String json)
java.lang.String
toJson()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Flag
public Flag(@NonNull java.lang.String key, @NonNull LDValue value, int version, @Nullable java.lang.Integer flagVersion, @Nullable java.lang.Integer variation, boolean trackEvents, boolean trackReason, @Nullable java.lang.Long debugEventsUntilDate, @Nullable EvaluationReason reason)
Constructs an instance, specifying all properties.- Parameters:
key
- the flag keyvalue
- the current valueversion
- a value that is incremented with each updateflagVersion
- the current flag version for analytics eventsvariation
- variation index of the resulttrackEvents
- true if full event tracking is enabledtrackReason
- true if events must include evaluation reasonsdebugEventsUntilDate
- non-null if debugging is enabledreason
- evaluation reason of the result, or null if not available
-
-
Method Detail
-
deletedItemPlaceholder
public static DataModel.Flag deletedItemPlaceholder(@NonNull java.lang.String key, int version)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
fromJson
public static DataModel.Flag fromJson(java.lang.String json) throws SerializationException
- Throws:
SerializationException
-
toJson
public java.lang.String toJson()
-
-