FeatureFlag

constructor(@NonNull name: String)

Create a named FeatureFlag with no variant

Parameters

name

the identifying name of the new FeatureFlag (not null)

See also


constructor(@NonNull name: String, @Nullable variant: String)

Create a new FeatureFlag with a name and (optionally) a variant.

Parameters

name

the identifying name of the new FeatureFlag (not null)

variant

the feature variant


constructor(@NonNull mapEntry: Map.Entry<String, String>)

Create a new FeatureFlag based on an existing Map.Entry. This is the same as new FeatureFlag(mapEntry.getKey(), mapEntry.getValue()).

Parameters

mapEntry

an existing Map.Entry to copy the feature flag from