public class FileStatus extends Object implements Comparable
| Constructor and Description |
|---|
FileStatus() |
FileStatus(long length,
boolean isdir,
long modification_time,
Path path) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compare this object to another object
|
boolean |
equals(Object o)
Compare if this object is equal to another object
|
long |
getLen()
Get the length of this file, in bytes.
|
long |
getModificationTime()
Get the modification time of the file.
|
Path |
getPath() |
int |
hashCode()
Returns a hash code value for the object, which is defined as
the hash code of the path name.
|
boolean |
isDirectory()
Is this a directory?
|
boolean |
isFile()
Is this a file?
|
void |
setPath(Path p) |
String |
toString() |
public FileStatus()
public FileStatus(long length,
boolean isdir,
long modification_time,
Path path)
public long getLen()
public boolean isFile()
public boolean isDirectory()
public long getModificationTime()
public Path getPath()
public void setPath(Path p)
public int compareTo(Object o)
compareTo in interface Comparableo - the object to be compared.ClassCastException - if the specified object's is not of
type FileStatuspublic boolean equals(Object o)
public int hashCode()
Copyright © 2024 Alibaba Cloud Computing. All rights reserved.