Lines Matching refs:o1
32 private static boolean areEqual(Object o1, Object o2) {
33 if (o1 == null || o2 == null) {
34 return o1 == null && o2 == null;
35 } else if (isArray(o1)) {
36 return isArray(o2) && areArraysEqual(o1, o2);
38 return o1.equals(o2);
42 private static boolean areArraysEqual(Object o1, Object o2) {
43 return areArrayLengthsEqual(o1, o2)
44 && areArrayElementsEqual(o1, o2);
47 private static boolean areArrayLengthsEqual(Object o1, Object o2) {
48 return Array.getLength(o1) == Array.getLength(o2);
51 private static boolean areArrayElementsEqual(Object o1, Object o2) {
52 for (int i = 0; i < Array.getLength(o1); i++) {
53 if (!areEqual(Array.get(o1, i), Array.get(o2, i))) return false;