MCPcopy Index your code
hub / github.com/davidgiven/luje / equals

Method equals

lib/java/util/TreeMap.java:68–82  ·  view source on GitHub ↗
(Object object)

Source from the content-addressed store, hash-verified

66 }
67
68 @Override
69 public boolean equals(Object object) {
70 if (this == object) {
71 return true;
72 }
73 if (object instanceof Map.Entry) {
74 Map.Entry<?, ?> entry = (Map.Entry<?, ?>) object;
75 V value = getValue();
76 return (key == null ? entry.getKey() == null : key.equals(entry
77 .getKey()))
78 && (value == null ? entry.getValue() == null : value
79 .equals(entry.getValue()));
80 }
81 return false;
82 }
83
84 public K getKey() {
85 return key;

Callers

nothing calls this directly

Calls 4

getValueMethod · 0.95
getKeyMethod · 0.65
equalsMethod · 0.65
getValueMethod · 0.65

Tested by

no test coverage detected