Package noaa.coastwatch.gui.open
Class DirectoryLister.Entry
java.lang.Object
noaa.coastwatch.gui.open.DirectoryLister.Entry
- All Implemented Interfaces:
Comparable
- Enclosing interface:
- DirectoryLister
The
DirectoryLister.Entry
class may be used to
access one entry in the contents of a directory lister.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compares this entry to another.boolean
Checks this entry against another for equality.Get the date that the directory entry was last modified.getName()
Gets the directory entry name.long
getSize()
Gets the size of the directory entry (if applicable).boolean
Returns true if the entry is a subdirectory.toString()
Converts this entry to a string.
-
Constructor Details
-
Entry
Creates a new entry.
-
-
Method Details
-
getName
Gets the directory entry name. -
getModified
Get the date that the directory entry was last modified. -
getSize
public long getSize()Gets the size of the directory entry (if applicable). -
isDirectory
public boolean isDirectory()Returns true if the entry is a subdirectory. -
compareTo
Compares this entry to another.- Specified by:
compareTo
in interfaceComparable
-
equals
Checks this entry against another for equality. -
toString
Converts this entry to a string.
-