public class FileSet
extends java.lang.Object
| Modifier | Constructor and Description | 
|---|---|
protected  | 
FileSet(java.net.URL root,
       FileSetFilter filter)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
contains(java.net.URL url)
Determine whether this file set contains a URL. 
 | 
boolean | 
equals(java.lang.Object o)  | 
FileSetFilter | 
getFilter()
Get the filter of this file set. 
 | 
static FileSet | 
getInstance(java.net.URL root)
Get a file set instance that contains all files in a root directory. 
 | 
static FileSet | 
getInstance(java.net.URL root,
           FileSetFilter filter)
Get a file set instance that contains all file in a root directory that
 are accepted by a filter. 
 | 
java.lang.String | 
getRelativePath(java.net.URL url)
Get the path of a URL, relative to this file set. 
 | 
java.net.URL | 
getRoot()
Get the root directory of this file set. 
 | 
int | 
hashCode()  | 
FileSet | 
intern()
Returns a canonical representation of the file set. 
 | 
java.lang.String | 
toString()  | 
protected FileSet(java.net.URL root,
                  FileSetFilter filter)
public static FileSet getInstance(@NotNull java.net.URL root)
root - the root directorypublic static FileSet getInstance(@NotNull java.net.URL root, @NotNull FileSetFilter filter)
root - the root directoryfilter - the filterpublic java.net.URL getRoot()
public FileSetFilter getFilter()
public FileSet intern()
FileSet from being pinned on the heap.  It also
 allows instances to be compared using ==.  Interned keys can also
 be used as keys in an IdentityHashMap.public boolean contains(java.net.URL url)
GlobalIgnoreList filters or any other
 filters.  This does not check for existence of the URL.url - the URLtrue if this root contains the given URL,
         false otherwisepublic java.lang.String getRelativePath(java.net.URL url)
null
 if the URL is not in this file set.  This does not check whether the URL
 or relative path exists.url - the URLnull if the URL is not in
   this file setpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object