staticvoid test(String fn1, String fn2) throws Exception {
File f1 = new File(fn1);
File f2 = new File(fn2); if (!f1.equals(f2)) thrownew Exception("Instances with equal paths are not equal"); int h1 = f1.hashCode(); int h2 = f2.hashCode(); if (h1 != h2) thrownew Exception("Hashcodes of equal instances are not equal");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.