private void compare() { if (typeAdapter.equals(expected, result)) { right(cell); } else { wrong(cell, typeAdapter.toString(result)); } }
public boolean equals(Object a, Object b) { int length = Array.getLength(a); if (length != Array.getLength(b)) return false; for (int i = 0; i < length; i++) { if (!componentAdapter.equals(Array.get(a, i), Array.get(b, i))) return false; } return true; }