equal


Description:

public abstract bool equal (File file2)

Checks if the two given Files refer to the same file.

Note that two Files that differ can still refer to the same file on the filesystem due to various forms of filename aliasing.

This call does no blocking I/O.

Parameters:

this

the first File

file2

the second File

Returns:

true if this and file2 are equal.