Top Fields Constructors Methods
org.jboss.modules.filter

pack-priv final Class SetPathFilter

extends Object
implements PathFilter
Class Inheritance
All Implemented Interfaces
org.jboss.modules.filter.PathFilter
Imports
java.util.Iterator, .Set

Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final int
private final Set<String>

Constructor Summary

AccessConstructor and Description
pack-priv
SetPathFilter(final Set<String> paths)

Method Summary

Modifier and TypeMethod and Description
public boolean
accept(final String
the path to check
path
)

Implements org.jboss.modules.filter.PathFilter.accept.

Determine whether a path should be accepted.
public boolean
equals(final Object
the other object
obj
)

Overrides java.lang.Object.equals.

Implements org.jboss.modules.filter.PathFilter.equals.

Determine whether this filter is equal to another.
public boolean
equals(final SetPathFilter obj)

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements org.jboss.modules.filter.PathFilter.hashCode.

Calculate a unique hash code for this path filter.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

hashCodeback to summary
private final int hashCode
pathsback to summary
private final Set<String> paths

Constructor Detail

SetPathFilterback to summary
pack-priv SetPathFilter(final Set<String> paths)

Method Detail

acceptback to summary
public boolean accept(final String path)

Implements org.jboss.modules.filter.PathFilter.accept.

Doc from org.jboss.modules.filter.PathFilter.accept.

Determine whether a path should be accepted. The given name is a path separated by "/" characters.

Parameters
path:String

the path to check

Returns:boolean

true if the path should be accepted, false if not

equalsback to summary
public boolean equals(final Object obj)

Overrides java.lang.Object.equals.

Implements org.jboss.modules.filter.PathFilter.equals.

Doc from org.jboss.modules.filter.PathFilter.equals.

Determine whether this filter is equal to another. Filters must implement meaningful (non-identity) equality semantics.

Parameters
obj:Object

the other object

Returns:boolean

true if this filter is the same

equalsback to summary
public boolean equals(final SetPathFilter obj)
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.jboss.modules.filter.PathFilter.hashCode.

Doc from org.jboss.modules.filter.PathFilter.hashCode.

Calculate a unique hash code for this path filter. Equal path filters must yield identical hash codes.

Returns:int

the hash code

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.