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

Method equals

base/src/main/java/net/time4j/DayPeriod.java:379–398  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

377 }
378
379 @Override
380 public boolean equals(Object obj) {
381
382 if (this == obj) {
383 return true;
384 } else if (obj instanceof DayPeriod) {
385 DayPeriod that = (DayPeriod) obj;
386 if (this.locale == null) {
387 if (that.locale != null) {
388 return false;
389 }
390 } else if (!this.locale.equals(that.locale)) {
391 return false;
392 }
393 return (this.codeMap.equals(that.codeMap) && this.calendarType.equals(that.calendarType));
394 }
395
396 return false;
397
398 }
399
400 @Override
401 public int hashCode() {

Callers 8

toStringMethod · 0.45
ofMethod · 0.45
loadTextFormsMethod · 0.45
resolveMethod · 0.45
doEqualsMethod · 0.45
parseMethod · 0.45
compareIgnoreCaseMethod · 0.45
applyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected