MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / equals

Method equals

src/test/java/com/opslab/temp/model/User.java:25–37  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

23 }
24
25 @Override
26 public boolean equals(Object obj) {
27 if (obj == null) {
28 return false;
29 }
30 if (obj instanceof User) {
31 User user = (User) obj;
32 if (user.getUserId().equals(this.userId) && user.getUserName().equals(this.userName)) {
33 return true;
34 }
35 }
36 return false;
37 }
38
39 public String getUserId() {
40 return userId;

Callers 15

testGruopMethod · 0.80
str2HexStrMethod · 0.80
testMethod · 0.80
isEmptyMethod · 0.80
isNotEmptyMethod · 0.80
getIpAddrMethod · 0.80
listFileNameMethod · 0.80
subtimeBurstMethod · 0.80
calculateMethod · 0.80
getSuperClassChianMethod · 0.80
getFileMethod · 0.80
hasPropertyFilterMethod · 0.80

Calls 2

getUserIdMethod · 0.95
getUserNameMethod · 0.95

Tested by

no test coverage detected