Class DirectoryLister.Entry

java.lang.Object
noaa.coastwatch.gui.open.DirectoryLister.Entry
All Implemented Interfaces:
Comparable
Enclosing interface:
DirectoryLister

public static class DirectoryLister.Entry extends Object implements Comparable
The DirectoryLister.Entry class may be used to access one entry in the contents of a directory lister.
  • Constructor Details

    • Entry

      protected Entry(String n, Date m, long s, boolean d)
      Creates a new entry.
  • Method Details

    • getName

      public String getName()
      Gets the directory entry name.
    • getModified

      public Date 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

      public int compareTo(Object o)
      Compares this entry to another.
      Specified by:
      compareTo in interface Comparable
    • equals

      public boolean equals(Object o)
      Checks this entry against another for equality.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Converts this entry to a string.
      Overrides:
      toString in class Object