Package org.omegazero.proxy.util
Class FeatureSet
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<String>,Collection<String>,Set<String>
A set of strings representing proxy features.
- Since:
- 3.10.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds all features in the given feature string list, separated by commas, to this feature set.booleancontainsFeature(String option) Checks whether the given feature string is in this feature set.Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, newHashSet, remove, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
FeatureSet
public FeatureSet()
-
-
Method Details
-
addList
Adds all features in the given feature string list, separated by commas, to this feature set.- Parameters:
list- The list
-
containsFeature
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:
trueif the given feature is in this feature set
-