Class FeatureConfiguration


  • public class FeatureConfiguration
    extends java.lang.Object
    • Field Detail

      • LOG

        private static final java.util.logging.Logger LOG
      • featureEnabled

        private java.util.Map<Feature,​java.lang.Object> featureEnabled
    • Constructor Detail

      • FeatureConfiguration

        public FeatureConfiguration()
    • Method Detail

      • setValue

        public FeatureConfiguration setValue​(Feature feature,
                                             java.lang.Object value)
        Parameters:
        feature -
        value -
        Returns:
        this
      • getValue

        public java.lang.Object getValue​(Feature feature)
        Parameters:
        feature -
        Returns:
        the configured feature value - can be null
        Throws:
        java.lang.IllegalStateException - - if given Feature.isConfigurable() == false
      • getAsBoolean

        public boolean getAsBoolean​(Feature f)
      • getAsLong

        public java.lang.Long getAsLong​(Feature f)
      • getAsString

        public java.lang.String getAsString​(Feature f)