Package org.wildfly.discovery
Class HasFilterSpec
java.lang.Object
org.wildfly.discovery.FilterSpec
org.wildfly.discovery.HasFilterSpec
- All Implemented Interfaces:
Serializable
- Author:
- David M. Lloyd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wildfly.discovery.FilterSpec
FilterSpec.Visitor<P,R, E extends Exception> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<P,R, E extends Exception>
Raccept(FilterSpec.Visitor<P, R, E> visitor, P parameter) booleanequals(FilterSpec other) booleanequals(HasFilterSpec other) Get the attribute to compare.inthashCode()booleanmatchesMulti(Map<String, ? extends Collection<AttributeValue>> attributes) Determine whether the given attribute multi-map matches this filter.booleanmatchesSimple(Map<String, AttributeValue> attributes) Determine whether the given simple attribute map matches this filter.booleanmayMatch(Collection<String> attributeNames) Determine whether this filter spec might match an attribute map containing the given keys.booleanmayNotMatch(Collection<String> attributeNames) Determine whether this filter spec might not match an attribute map containing the given keys.Methods inherited from class org.wildfly.discovery.FilterSpec
accept, all, all, all, any, any, approx, equal, equal, equals, escape, escapeTo, fromString, greaterOrEqual, greaterOrEqual, hasAttribute, lessOrEqual, lessOrEqual, none, not, substringMatch, toString, willMatch, willNotMatch
-
Constructor Details
-
HasFilterSpec
-
-
Method Details
-
matchesSimple
Description copied from class:FilterSpecDetermine whether the given simple attribute map matches this filter.- Specified by:
matchesSimplein classFilterSpec- Parameters:
attributes- the attribute map- Returns:
trueif the map matches,falseotherwise
-
matchesMulti
Description copied from class:FilterSpecDetermine whether the given attribute multi-map matches this filter.- Specified by:
matchesMultiin classFilterSpec- Parameters:
attributes- the attribute map- Returns:
trueif the map matches,falseotherwise
-
mayMatch
Description copied from class:FilterSpecDetermine whether this filter spec might match an attribute map containing the given keys.- Specified by:
mayMatchin classFilterSpec- Parameters:
attributeNames- the attribute names- Returns:
trueif the filter spec might match,falseif it will definitely not match
-
mayNotMatch
Description copied from class:FilterSpecDetermine whether this filter spec might not match an attribute map containing the given keys.- Specified by:
mayNotMatchin classFilterSpec- Parameters:
attributeNames- the attribute names- Returns:
trueif the filter spec might not match,falseif it will definitely match
-
accept
public <P,R, R acceptE extends Exception> (FilterSpec.Visitor<P, R, throws EE> visitor, P parameter) - Specified by:
acceptin classFilterSpec- Throws:
E extends Exception
-
getAttribute
Get the attribute to compare.- Returns:
- the attribute to compare (not
null)
-
equals
- Specified by:
equalsin classFilterSpec
-
equals
-
hashCode
public int hashCode()
-