Class FeatureSet

All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, Set<String>

public class FeatureSet extends HashSet<String>
A set of strings representing proxy features.
Since:
3.10.1
See Also:
  • Constructor Details

    • FeatureSet

      public FeatureSet()
  • Method Details

    • addList

      public void addList(String list)
      Adds all features in the given feature string list, separated by commas, to this feature set.
      Parameters:
      list - The list
    • containsFeature

      public boolean containsFeature(String option)
      Checks whether the given feature string is in this feature set.

      Feature strings may be matched by a wildcard. For example, if this feature set contains "f1", "f2.*", all of the following feature strings would be considered part of this feature set: "f1", "f2.*", "f2.anything".

      Parameters:
      option - The feature string
      Returns:
      true if the given feature is in this feature set