public static boolean equal(List<Partition> listA, List<Partition> listB) {
        if (listA.size() != listB.size()) {
            return false;
        }
        for (int index = 0; index < listA.size(); index++) {
            Partition a = listA.get(index);
            Partition b = listB.get(index);
            if ((a.mStart != b.mStart) ||
                (a.mEnd != b.mEnd) ||
                (a.mLength != b.mLength))  {
                return false;
            }

        }
        return true;
    }