get

abstract fun get(flag: BooleanFeatureFlag): Boolean

Calculates the value of a boolean feature flag

Parameters

flag

the feature flag to evaluate

Throws

if the service is unavailable.


abstract fun get(flag: StringFeatureFlag): String

Calculates the value of a string feature flag

Parameters

flag

the feature flag to evaluate

Throws

if the service is unavailable.


abstract fun get(flag: IntFeatureFlag): Int

Calculates the value of an int feature flag

Parameters

flag

the feature flag to evaluate

Throws

if the service is unavailable.


abstract fun get(flag: DoubleFeatureFlag): Double

Calculates the value of a double feature flag

Parameters

flag

the feature flag to evaluate

Throws

if the service is unavailable.


abstract fun <T : Enum<T>> get(flag: EnumFeatureFlag<T>): T

Calculates the value of an enum feature flag

Parameters

flag

the feature flag to evaluate

Throws

if the service is unavailable.

if the flag is off with no default value.


abstract fun <T : Any> get(flag: JsonFeatureFlag<T>): T

Calculates the value of a json feature flag

Parameters

flag

the feature flag to evaluate

Throws

if the service is unavailable.

if the flag is off with no default value.