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

Method equals

classpath/java/util/Arrays.java:272–288  ·  view source on GitHub ↗
(Object[] a, Object[] b)

Source from the content-addressed store, hash-verified

270 }
271
272 public static boolean equals(Object[] a, Object[] b) {
273 if(a == b) {
274 return true;
275 }
276 if(a == null || b == null) {
277 return false;
278 }
279 if(a.length != b.length) {
280 return false;
281 }
282 for(int i = 0; i < a.length; i++) {
283 if(!equal(a[i], b[i])) {
284 return false;
285 }
286 }
287 return true;
288 }
289
290 public static boolean equals(byte[] a, byte[] b) {
291 if(a == b) {

Callers 5

mainMethod · 0.95
getDeclaredClassesMethod · 0.95
getDeclaringClassMethod · 0.95
getModifiersMethod · 0.95
deepEqualsMethod · 0.95

Calls 1

equalMethod · 0.95

Tested by 1

mainMethod · 0.76