Package com.flagsmith.flagengine
Class EnvironmentContext
java.lang.Object
com.flagsmith.flagengine.EnvironmentContext
EnvironmentContext
Represents an environment context for feature flag evaluation.
-
Constructor Summary
ConstructorsConstructorDescriptionNo args constructor for use in serializationEnvironmentContext(EnvironmentContext source) EnvironmentContext(String key, String name) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()KeygetName()NameinthashCode()voidsetAdditionalProperty(String name, Object value) voidKeyvoidNametoString()withAdditionalProperty(String name, Object value)
-
Constructor Details
-
EnvironmentContext
public EnvironmentContext()No args constructor for use in serialization -
EnvironmentContext
- Parameters:
source- the object being copied
-
EnvironmentContext
- Parameters:
key- Key. Unique environment key. May be used for selecting a value for a multivariate feature, or for % split segmentation.name- Name. An environment's human-readable name.
-
-
Method Details
-
getKey
KeyUnique environment key. May be used for selecting a value for a multivariate feature, or for % split segmentation. (Required)
-
setKey
KeyUnique environment key. May be used for selecting a value for a multivariate feature, or for % split segmentation. (Required)
-
withKey
-
getName
NameAn environment's human-readable name. (Required)
-
setName
NameAn environment's human-readable name. (Required)
-
withName
-
getAdditionalProperties
-
setAdditionalProperty
-
withAdditionalProperty
-
toString
-
hashCode
public int hashCode() -
equals
-