MCPcopy Create free account
hub / github.com/ZsBT/mrz-java / equals

Method equals

src/main/java/com/innovatrics/mrz/types/MrzDate.java:73–92  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

71 }
72
73 @Override
74 public boolean equals(Object obj) {
75 if (obj == null) {
76 return false;
77 }
78 if (getClass() != obj.getClass()) {
79 return false;
80 }
81 final MrzDate other = (MrzDate) obj;
82 if (this.year != other.year) {
83 return false;
84 }
85 if (this.month != other.month) {
86 return false;
87 }
88 if (this.day != other.day) {
89 return false;
90 }
91 return true;
92 }
93
94 @Override
95 public int hashCode() {

Callers 2

testEqualsMethod · 0.80
isFormatOfMethod · 0.80

Calls

no outgoing calls

Tested by 1

testEqualsMethod · 0.64