MCPcopy Create free account
hub / github.com/MenoData/Time4J / hashCode

Method hashCode

base/src/main/java/net/time4j/Duration.java:2446–2457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2444 * Vorzeichen passend zur Definition von {@code equals()}. </p>
2445 */
2446 @Override
2447 public int hashCode() {
2448
2449 int hash = this.getTotalLength().hashCode();
2450
2451 if (this.negative) {
2452 hash ^= hash;
2453 }
2454
2455 return hash;
2456
2457 }
2458
2459 /**
2460 * <p>Gets a canonical representation which optionally starts with a

Callers

nothing calls this directly

Calls 1

getTotalLengthMethod · 0.95

Tested by

no test coverage detected