Class IncludeExclude
Matching is case-sensitive. ? matches any single character and * matches any
number of characters, including none. Excluded patterns take precedence over included patterns.
When there are no included patterns, all values that are not excluded match. Callers are
responsible for normalizing values and patterns when a domain requires case-insensitive matching.
An empty selector, one with no included and no excluded patterns, carries no configuration. A setting that uses one should behave as if no selector were configured and fall back to its own default.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IncludeExcludeBuilderbuilder()Returns a new builder for anIncludeExclude.booleanReturns the excluded patterns.Returns the included patterns.inthashCode()booleanisEmpty()Returns whether this selector has no included and no excluded patterns.booleanReturns whethervaluematches this selector.toString()
-
Method Details
-
builder
Returns a new builder for anIncludeExclude. -
getIncluded
Returns the included patterns. -
getExcluded
Returns the excluded patterns. -
isEmpty
public boolean isEmpty()Returns whether this selector has no included and no excluded patterns.An empty selector carries no configuration, so a setting that uses one should fall back to its own default, as if no selector were configured.
-
matches
Returns whethervaluematches this selector.Excluded patterns take precedence over included patterns: an excluded value never matches, even when an included pattern also matches it. When there are no included patterns, every value that is not excluded matches, so an empty selector matches every value. A caller that treats an empty selector as no configuration should check
isEmpty()rather than call this method. -
equals
-
hashCode
public int hashCode() -
toString
-