Class BasicFeatureConfig<S>

  • Type Parameters:
    S - Subject type

    public abstract class BasicFeatureConfig<S>
    extends Config<S>
    Base abstraction for configuring feature on subject.
    • Constructor Detail

      • BasicFeatureConfig

        protected BasicFeatureConfig​(boolean defaultValue)
    • Method Detail

      • enabled

        public boolean enabled()
        Indicates whether the feature for the subject is enabled.
        Returns:
        true if feature is enabled
      • enabled

        public BasicFeatureConfig<S> enabled​(Boolean enabled)
        Specifies whether the feature for the subject is to be enabled.
        Parameters:
        enabled - true to enable; false to disable; null to clear
        Returns:
        self