Package 

Class FeatureFlag

  • All Implemented Interfaces:
    java.util.Map.Entry

    
    public final class FeatureFlag
     implements Map.Entry<String, String>
                        

    Represents a single feature-flag / experiment marker within Bugsnag. Each {@code FeatureFlag} object has a name and an optional variant which can be used to identify runtime experiments and groups when reporting errors.

    • Constructor Detail

      • FeatureFlag

        FeatureFlag(String name)
        Create a named {@code FeatureFlag} with no variant
        Parameters:
        name - the identifying name of the new {@code FeatureFlag} (not {@code null})
      • FeatureFlag

        FeatureFlag(String name, String variant)
        Create a new {@code FeatureFlag} with a name and (optionally) a variant.
        Parameters:
        name - the identifying name of the new {@code FeatureFlag} (not {@code null})
        variant - the feature variant
      • FeatureFlag

        FeatureFlag(Map.Entry<String, String> mapEntry)
        Create a new {@code FeatureFlag} based on an existing {@code Map.Entry}.
        Parameters:
        mapEntry - an existing {@code Map.Entry} to copy the feature flag from