public class PathEntry extends java.lang.Object implements Comparable
Modifier and Type | Field and Description |
---|---|
static int |
DIR
Defines that this PathEntry is a directory.
|
static int |
FILE
Defines that this PathEntry is a file.
|
int |
type
The type of this PathEntry
|
java.lang.String |
value
The path of this PathEntry
|
Constructor and Description |
---|
PathEntry(java.lang.String value,
boolean isDir)
Constructs a new PathEntry based on the given parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object arg0)
Must return > 0 if this object is greater than the other one, < 0 if its smaller, and 0 if they are equal.
|
java.lang.String |
toString() |
public static final int DIR
public static final int FILE
public java.lang.String value
public int type
public PathEntry(java.lang.String value, boolean isDir)
value
- the path valueisDir
- true if the path is a directorypublic int compareTo(java.lang.Object arg0)
Comparable
compareTo
in interface Comparable
public java.lang.String toString()
toString
in class java.lang.Object