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

Method hashCode

lib/java/io/File.java:748–754  ·  view source on GitHub ↗

Returns an integer hash code for the receiver. Any two objects for which equals returns true must return the same hash code. @return this files's hash value. @see #equals

()

Source from the content-addressed store, hash-verified

746 * @see #equals
747 */
748 @Override
749 public int hashCode() {
750 if (caseSensitive) {
751 return path.hashCode() ^ 1234321;
752 }
753 return path.toLowerCase(Locale.ENGLISH).hashCode() ^ 1234321;
754 }
755
756 /**
757 * Indicates if this file's pathname is absolute. Whether a pathname is

Callers

nothing calls this directly

Calls 2

hashCodeMethod · 0.65
toLowerCaseMethod · 0.45

Tested by

no test coverage detected