Java FileTime.hashCode()
Syntax
FileTime.hashCode() has the following syntax.
public int hashCode()
Example
In the following code shows how to use FileTime.hashCode() method.
import java.nio.file.attribute.FileTime;
/* w ww. j a v a 2s.c om*/
public class Main {
public static void main(String[] args) throws Exception {
long time = System.currentTimeMillis();
FileTime fileTime = FileTime.fromMillis(time);
System.out.println(fileTime.hashCode());
}
}
The code above generates the following result.