MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / hashCode

Method hashCode

src/tree/Branch.java:147–153  ·  view source on GitHub ↗

@return Returns the display_name's hash code or 0 if it's not set

()

Source from the content-addressed store, hash-verified

145
146 /** @return Returns the {@code display_name}'s hash code or 0 if it's not set */
147 @Override
148 public int hashCode() {
149 if (display_name == null || display_name.isEmpty()) {
150 return 0;
151 }
152 return display_name.hashCode();
153 }
154
155 /**
156 * Just compares the branch display name

Callers 4

testHashCodeMethod · 0.95
addLeafMethod · 0.45
compileBranchIdMethod · 0.45
callMethod · 0.45

Calls 1

isEmptyMethod · 0.80

Tested by 1

testHashCodeMethod · 0.76