Class ConfigItems

  • All Implemented Interfaces:
    java.lang.Iterable<ConfigItem>

    public class ConfigItems
    extends java.lang.Object
    implements java.lang.Iterable<ConfigItem>
    Contains collection of config items aka feature flags aka hierarchical config.
    • Field Detail

      • CLIENT_CONFIG_ITEMS_URI

        public static final java.lang.String CLIENT_CONFIG_ITEMS_URI
      • DATA_PRODUCT_CONFIG_ITEMS_URI

        public static final java.lang.String DATA_PRODUCT_CONFIG_ITEMS_URI
      • SEGMENT_CONFIG_ITEMS_URI

        public static final java.lang.String SEGMENT_CONFIG_ITEMS_URI
      • DOMAIN_CONFIG_ITEMS_URI

        public static final java.lang.String DOMAIN_CONFIG_ITEMS_URI
      • PROJECT_CONFIG_ITEMS_URI

        public static final java.lang.String PROJECT_CONFIG_ITEMS_URI
      • PROJECT_GROUP_CONFIG_ITEMS_URI

        public static final java.lang.String PROJECT_GROUP_CONFIG_ITEMS_URI
    • Constructor Detail

      • ConfigItems

        public ConfigItems​(java.util.List<ConfigItem> items)
    • Method Detail

      • iterator

        public java.util.Iterator<ConfigItem> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<ConfigItem>
      • getValue

        public java.lang.String getValue​(java.lang.String configName)
        Returns value if config item exists, otherwise returns null.
        Parameters:
        configName - the name/key of the config item
        Returns:
        value if config item with given name/key exists, null otherwise
      • isEnabled

        public boolean isEnabled​(java.lang.String configName)
        Returns true if the config item with given name/key exists and is enabled, false otherwise.
        Parameters:
        configName - the name/key of config item
        Returns:
        true if the config item with given name/key exists and is enabled, false otherwise
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object