Class AllFilterSpec

java.lang.Object
org.wildfly.discovery.FilterSpec
org.wildfly.discovery.AllFilterSpec
All Implemented Interfaces:
Serializable, Iterable<FilterSpec>

public final class AllFilterSpec extends FilterSpec implements Iterable<FilterSpec>
A filter specification matching all of a set of sub-filters.
Author:
David M. Lloyd
See Also:
  • Method Details

    • matchesSimple

      public boolean matchesSimple(Map<String,AttributeValue> attributes)
      Description copied from class: FilterSpec
      Determine whether the given simple attribute map matches this filter.
      Specified by:
      matchesSimple in class FilterSpec
      Parameters:
      attributes - the attribute map
      Returns:
      true if the map matches, false otherwise
    • matchesMulti

      public boolean matchesMulti(Map<String,? extends Collection<AttributeValue>> attributes)
      Description copied from class: FilterSpec
      Determine whether the given attribute multi-map matches this filter.
      Specified by:
      matchesMulti in class FilterSpec
      Parameters:
      attributes - the attribute map
      Returns:
      true if the map matches, false otherwise
    • mayMatch

      public boolean mayMatch(Collection<String> attributeNames)
      Description copied from class: FilterSpec
      Determine whether this filter spec might match an attribute map containing the given keys.
      Specified by:
      mayMatch in class FilterSpec
      Parameters:
      attributeNames - the attribute names
      Returns:
      true if the filter spec might match, false if it will definitely not match
    • mayNotMatch

      public boolean mayNotMatch(Collection<String> attributeNames)
      Description copied from class: FilterSpec
      Determine whether this filter spec might not match an attribute map containing the given keys.
      Specified by:
      mayNotMatch in class FilterSpec
      Parameters:
      attributeNames - the attribute names
      Returns:
      true if the filter spec might not match, false if it will definitely match
    • accept

      public <P, R, E extends Exception> R accept(FilterSpec.Visitor<P,R,E> visitor, P parameter) throws E
      Specified by:
      accept in class FilterSpec
      Throws:
      E extends Exception
    • iterator

      public ListIterator<FilterSpec> iterator()
      Specified by:
      iterator in interface Iterable<FilterSpec>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(FilterSpec obj)
      Specified by:
      equals in class FilterSpec
    • equals

      public boolean equals(AllFilterSpec obj)