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

Method equal

src/main/java/groovy/lang/MetaMethod.java:126–136  ·  view source on GitHub ↗

Compares cached parameter types against Java classes. @param a cached parameter types @param b Java parameter types @return true if the arrays describe the same parameter types

(CachedClass[] a, Class[] b)

Source from the content-addressed store, hash-verified

124 * @return {@code true} if the arrays describe the same parameter types
125 */
126 protected static boolean equal(CachedClass[] a, Class[] b) {
127 if (a.length == b.length) {
128 for (int i = 0, size = a.length; i < size; i++) {
129 if (!a[i].getTheClass().equals(b[i])) {
130 return false;
131 }
132 }
133 return true;
134 }
135 return false;
136 }
137
138 /**
139 * Compares two cached parameter type arrays.

Callers 5

isMethodMethod · 0.95
isSameMethod · 0.95
mopArrayIndexMethod · 0.95
findMethodMethod · 0.95

Calls 2

equalsMethod · 0.65
getTheClassMethod · 0.65

Tested by

no test coverage detected