Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SW-Fantastic/Reader
/ hashCode
Method
hashCode
src/main/java/org/swdc/reader/entity/BookType.java:46–53 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
44
}
45
46
@Override
47
public
int
hashCode() {
48
if
(this.getId() != null) {
49
return
this.getId().intValue();
50
}
else
{
51
return
this.getName().hashCode();
52
}
53
}
54
55
public
Long getId() {
56
return
id;
Callers
nothing calls this directly
Calls
2
getId
Method · 0.95
getName
Method · 0.95
Tested by
no test coverage detected