FileTime.hashCode() has the following syntax.
public int hashCode()
In the following code shows how to use FileTime.hashCode() method.
import java.nio.file.attribute.FileTime; /*from w w w .j a va 2 s.com*/ 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.