edu.rice.cs.util
Class NullFile
java.lang.Object
java.io.File
edu.rice.cs.util.NullFile
- All Implemented Interfaces:
- Serializable, Comparable<File>
public class NullFile
- extends File
- implements Serializable
A null file. This class is NOT a singleton because we need multiple, distinct null files for untitled documents.
The equals method is overridden so that distinct NullFile objects (which all have the same path) are unequal.
- See Also:
- Serialized Form
|
Field Summary |
private static int |
ct
|
| Methods inherited from class java.io.File |
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toURI, toURL |
ct
private static volatile int ct
NullFile
public NullFile()
NullFile
private NullFile(String lexiName)
toString
public String toString()
- Overrides:
toString in class File
getName
public String getName()
- Overrides:
getName in class File
getLexiName
public String getLexiName()
equals
public boolean equals(Object o)
- All distinct objects of type NullFile are unequal.
- Overrides:
equals in class File