Interface IContainerFlagSupport<FI extends IFlagInstance>

Type Parameters:
FI - the Java type of the managed flag instance data

public interface IContainerFlagSupport<FI extends IFlagInstance>
Provides support for managing the flag contents of a IModelDefinition.

This interface provides the underlying data used by IFeatureContainerFlag.

  • Method Details

    • empty

      @NonNull static <T extends IFlagInstance> IContainerFlagSupport<T> empty()
      Provides an empty instance.
      Type Parameters:
      T - the Java type of the flag instances
      Returns:
      an empty instance
    • builder

      @NonNull static <T extends IFlagInstance> IFlagContainerBuilder<T> builder()
      Create a new flag container without a JSON key.
      Type Parameters:
      T - the Java type of the flag instances
      Returns:
      the flag container
    • builder

      @NonNull static <T extends IFlagInstance> IFlagContainerBuilder<T> builder(@NonNull Integer jsonKey)
      Create a new flag container using the provided flag qualified name as the JSON key.
      Type Parameters:
      T - the Java type of the flag instances
      Parameters:
      jsonKey - the qualified name of the JSON key
      Returns:
      the flag container
    • getFlagInstanceMap

      @NonNull Map<Integer,FI> getFlagInstanceMap()
      Get a mapping of flag effective name to flag instance.
      Returns:
      the mapping of flag effective name to flag instance
    • getJsonKeyFlagInstance

      @Nullable FI getJsonKeyFlagInstance()
      Get the JSON key flag instance.
      Returns:
      the flag instance or null if no JSON key is configured