java.io.Serializable
, FileSystemSource
, UriSource
, TestSource
@API(status=STABLE, since="1.0") public class DirectorySource extends java.lang.Object implements FileSystemSource
TestSource
.DirectorySelector
,
Serialized FormModifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
static DirectorySource |
from(java.io.File directory) |
Create a new
DirectorySource using the supplied
directory. |
java.io.File |
getFile() |
Get the source directory.
|
java.net.URI |
getUri() |
Get the
URI for the source directory. |
int |
hashCode() |
|
java.lang.String |
toString() |
public static DirectorySource from(java.io.File directory)
DirectorySource
using the supplied
directory.directory
- the source directory; must not be null
public final java.net.URI getUri()
URI
for the source directory.public final java.io.File getFile()
getFile
in interface FileSystemSource
null
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object