MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / equals

Method equals

generics/Holder.java:13–16  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

11 public void set(T val) { value = val; }
12 public T get() { return value; }
13 @Override public boolean equals(Object o) {
14 return o instanceof Holder &&
15 Objects.equals(value, ((Holder)o).value);
16 }
17 @Override public int hashCode() {
18 return Objects.hashCode(value);
19 }

Callers 15

mainMethod · 0.45
mainMethod · 0.45
grabMethod · 0.45
methodOneTestMethod · 0.45
tMethodOneMethod · 0.45
tPushMethod · 0.45
tPopMethod · 0.45
tTopMethod · 0.45
tMethodOneMethod · 0.45
wordsMethod · 0.45
scramble1Method · 0.45
scramble2Method · 0.45

Calls

no outgoing calls

Tested by 2

tMethodOneMethod · 0.36
isEqualMethod · 0.36