Class FlagContainerBuilder<T extends IFlagInstance>

java.lang.Object
dev.metaschema.core.model.FlagContainerBuilder<T>
Type Parameters:
T - the Java type of flag instances
All Implemented Interfaces:
IFlagContainerBuilder<T>

public class FlagContainerBuilder<T extends IFlagInstance> extends Object implements IFlagContainerBuilder<T>
Default implementation of IFlagContainerBuilder.

This builder collects flag instances and constructs an immutable flag container. It handles duplicate flags (shadowing) by logging errors and using the last instance encountered. An optional JSON key flag can be specified.

  • Constructor Details

    • FlagContainerBuilder

      public FlagContainerBuilder(@Nullable Integer jsonKeyIndex)
      Construct a new flag container using the provided flag qualified name as the JSON key.
      Parameters:
      jsonKeyIndex - the qualified name index of the JSON key or null if no JSON key is configured
  • Method Details