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

Method deepEquals

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

Source from the content-addressed store, hash-verified

414 }
415
416 public static boolean deepEquals(Object[] a, Object[] b) {
417 if(a == b) {
418 return true;
419 }
420 if(a == null || b == null) {
421 return false;
422 }
423 if(a.length != b.length) {
424 return false;
425 }
426 for(int i = 0; i < a.length; i++) {
427 if(!Objects.deepEquals(a[i], b[i])) {
428 return false;
429 }
430 }
431 return true;
432 }
433
434 public static <T> List<T> asList(final T ... array) {
435 return new AbstractList<T>() {

Callers 2

mainMethod · 0.95
deepEqualsMethod · 0.95

Calls 1

deepEqualsMethod · 0.95

Tested by 1

mainMethod · 0.76