public static class DirectoryLister.Entry
extends java.lang.Object
implements java.lang.Comparable
DirectoryLister.Entry
class may be used to
access one entry in the contents of a directory lister.Modifier | Constructor and Description |
---|---|
protected |
Entry(java.lang.String n,
java.util.Date m,
long s,
boolean d)
Creates a new entry.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compares this entry to another.
|
boolean |
equals(java.lang.Object o)
Checks this entry against another for equality.
|
java.util.Date |
getModified()
Get the date that the directory entry was last modified.
|
java.lang.String |
getName()
Gets the directory entry name.
|
long |
getSize()
Gets the size of the directory entry (if applicable).
|
boolean |
isDirectory()
Returns true if the entry is a subdirectory.
|
java.lang.String |
toString()
Converts this entry to a string.
|
protected Entry(java.lang.String n, java.util.Date m, long s, boolean d)
public java.lang.String getName()
public java.util.Date getModified()
public long getSize()
public boolean isDirectory()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object