public final class DirLocator extends Object implements IResourceLocator
| Constructor and Description |
|---|
DirLocator(File dir)
Initializes the locator using the given directory.
|
DirLocator(String dirPath)
Initializes the locator using the given path.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object target)
Override equals to return
true for locators scanning an identical
set of locations. |
IResource[] |
getAll(String resource)
Locate all matching resources and return their
IResource handles. |
int |
hashCode()
Override hash code to return consistent hash code depending on all locations
scanned by this locator.
|
String |
toString() |
public DirLocator(File dir)
public DirLocator(String dirPath)
public IResource[] getAll(String resource)
IResourceLocatorIResource handles.getAll in interface IResourceLocatorpublic int hashCode()
IResourceLocatorhashCode in interface IResourceLocatorhashCode in class Objectpublic boolean equals(Object target)
IResourceLocatortrue for locators scanning an identical
set of locations.equals in interface IResourceLocatorequals in class Object