MCPcopy Index your code
hub / github.com/apache/groovy / equals

Method equals

src/main/java/groovy/lang/Tuple.java:127–140  ·  view source on GitHub ↗

{@inheritDoc}

(Object o)

Source from the content-addressed store, hash-verified

125 * {@inheritDoc}
126 */
127 @Override
128 public boolean equals(Object o) {
129 if (this == o) return true;
130 if (!(o instanceof List<?> that)) return false;
131
132 int size = size();
133 if (size != that.size()) return false;
134 for (int i = 0; i < size; i++) {
135 if (!DefaultTypeTransformation.compareEqual(get(i), that.get(i))) {
136 return false;
137 }
138 }
139 return true;
140 }
141
142 /**
143 * {@inheritDoc}

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.95
compareEqualMethod · 0.95
getMethod · 0.95
sizeMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected