Interface IFlagContainerSupport<F extends IFlagInstance>
-
public interface IFlagContainerSupport<F extends IFlagInstance>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T extends IFlagInstance>
IFlagContainerSupport<T>empty()
Map<String,? extends F>
getFlagInstanceMap()
Get a mapping of flag effective name to flag instance.F
getJsonKeyFlagInstance()
Retrieves the flag instance to use as as the property name for the containing object in JSON who's value will be the object containing the flag.
-
-
-
Method Detail
-
empty
@NonNull static <T extends IFlagInstance> IFlagContainerSupport<T> empty()
-
getFlagInstanceMap
@NonNull Map<String,? extends F> getFlagInstanceMap()
Get a mapping of flag effective name to flag instance.- Returns:
- the mapping of flag effective name to flag instance
-
getJsonKeyFlagInstance
@Nullable F getJsonKeyFlagInstance()
Retrieves the flag instance to use as as the property name for the containing object in JSON who's value will be the object containing the flag.- Returns:
- the flag instance if a JSON key is configured, or
null
otherwise
-
-