MCPcopy Create free account
hub / github.com/ReadyTalk/avian / hashCode

Method hashCode

classpath/java/lang/String.java:163–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 }
162
163 @Override
164 public int hashCode() {
165 if (hashCode == 0) {
166 int h = 0;
167 for (int i = 0; i < length; ++i) h = (h * 31) + charAt(i);
168 hashCode = h;
169 }
170 return hashCode;
171 }
172
173 @Override
174 public boolean equals(Object o) {

Callers

nothing calls this directly

Calls 1

charAtMethod · 0.95

Tested by

no test coverage detected