MCPcopy Create free account
hub / github.com/SW-Fantastic/Reader / equals

Method equals

src/main/java/org/swdc/reader/entity/BookTag.java:19–30  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

17 private String name;
18
19 @Override
20 public boolean equals(Object obj) {
21 if (obj instanceof BookTag) {
22 BookTag tag = (BookTag) obj;
23 if (this.getId() != null && tag.getId() != null) {
24 return this.getId().equals(tag.getId());
25 } else if (this.getId() == null && tag.getId() == null){
26 return this.name.equals(tag.getName());
27 }
28 }
29 return false;
30 }
31
32 @Override
33 public int hashCode() {

Callers 15

resolveRelativePathMethod · 0.45
locationMethod · 0.45
TextLocatorMethod · 0.45
supportMethod · 0.45
supportMethod · 0.45
supportMethod · 0.45
removeTagMethod · 0.45
changeViewMethod · 0.45
openBookMethod · 0.45
showRemoveTypeMethod · 0.45
onBookRemovedMethod · 0.45

Calls 2

getIdMethod · 0.95
getNameMethod · 0.95

Tested by

no test coverage detected