MCPcopy Create free account
hub / github.com/davidgiven/luje / compareTo

Method compareTo

lib/java/io/File.java:363–368  ·  view source on GitHub ↗

Returns the relative sort ordering of the paths for this file and the file another. The ordering is platform dependent. @param another a file to compare this file to @return an int determined by comparing the two paths. Possible values are described in the Comparable inte

(File another)

Source from the content-addressed store, hash-verified

361 * @see Comparable
362 */
363 public int compareTo(File another) {
364 if (caseSensitive) {
365 return this.getPath().compareTo(another.getPath());
366 }
367 return this.getPath().compareToIgnoreCase(another.getPath());
368 }
369
370 /**
371 * Deletes this file. Directories must be empty before they will be deleted.

Callers

nothing calls this directly

Calls 3

getPathMethod · 0.95
compareToIgnoreCaseMethod · 0.80
compareToMethod · 0.65

Tested by

no test coverage detected