Package java.io
Class File

Public Method compareTo

int compareTo(File that)

int compareTo(Object that)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

compareTo(File that) method:

Compares two abstract pathnames lexicographically; case is ignored. Returns 0 if the argument is equal to this abstract pathname, a value less than zero if this abstract pathname is lexicographically less than the argument, or a value greater than zero if this abstract pathname is lexicographically greater than the argument.

compareTo(Object that) method:

Compares this abstract pathname to another object. If the other object is an abstract pathname, then this function behaves like compareTo(File). Otherwise, it throws a ClassCastException, since abstract pathnames can only be compared to abstract pathnames.