Class FeatureFlags

    • Field Detail

      • AGGREGATED_FEATURE_FLAGS_TEMPLATE

        public static final org.springframework.web.util.UriTemplate AGGREGATED_FEATURE_FLAGS_TEMPLATE
    • Constructor Detail

      • FeatureFlags

        public FeatureFlags()
    • Method Detail

      • addFlag

        public void addFlag​(String name,
                            boolean enabled)
        Adds the feature flag of given name and given value.
        Parameters:
        name - feature flag name
        enabled - feature flag value (enabled / disabled)
      • removeFlag

        public void removeFlag​(String flagName)
        Removes flag of given name.
        Parameters:
        flagName - name of the flag to remove
      • isEnabled

        public boolean isEnabled​(String flagName)
        Returns true if the feature flag with given name exists and is enabled, false otherwise.
        Parameters:
        flagName - the name of feature flag
        Returns:
        true if the feature flag with given name exists and is enabled, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object