@API(status=STABLE, since="1.0") public class DirectorySource extends java.lang.Object implements FileSystemSource
TestSource
.DirectorySelector
,
Serialized FormModifier and Type | Field and Description |
---|---|
private java.io.File |
directory |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
private |
DirectorySource(java.io.File directory) |
Modifier and Type | Method and 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() |
private static final long serialVersionUID
private final java.io.File directory
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