Class SetPathFilter

java.lang.Object
org.jboss.modules.filter.SetPathFilter
All Implemented Interfaces:
PathFilter

final class SetPathFilter extends Object implements PathFilter
  • Field Details

    • paths

      private final Set<String> paths
    • hashCode

      private final int hashCode
  • Constructor Details

    • SetPathFilter

      SetPathFilter(Set<String> paths)
  • Method Details

    • accept

      public boolean accept(String path)
      Description copied from interface: PathFilter
      Determine whether a path should be accepted. The given name is a path separated by "/" characters.
      Specified by:
      accept in interface PathFilter
      Parameters:
      path - the path to check
      Returns:
      true if the path should be accepted, false if not
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Description copied from interface: PathFilter
      Determine whether this filter is equal to another. Filters must implement meaningful (non-identity) equality semantics.
      Specified by:
      equals in interface PathFilter
      Overrides:
      equals in class Object
      Parameters:
      obj - the other object
      Returns:
      true if this filter is the same
    • equals

      public boolean equals(SetPathFilter obj)
    • hashCode

      public int hashCode()
      Description copied from interface: PathFilter
      Calculate a unique hash code for this path filter. Equal path filters must yield identical hash codes.
      Specified by:
      hashCode in interface PathFilter
      Overrides:
      hashCode in class Object
      Returns:
      the hash code