return false;// NOPMD
}
final ListIterator<E> listIterator = listIterator();
@SuppressWarnings(RAWTYPES)
final ListIterator otherListIterator = ((List) object).listIterator();
final IEqualsHashComparator comparator = arrayListSupport
.getComparator();
if (comparator == null) {
while (listIterator.hasNext() && otherListIterator.hasNext()) {
final E element1 = listIterator.next();
final Object element2 = otherListIterator.next();
if (!(element1 == null ? element2 == null : element1
.equals(element2))) {
return false;// NOPMD
}
}
} else {
while (listIterator.hasNext() && otherListIterator.hasNext()) {
final E element1 = listIterator.next();
final Object element2 = otherListIterator.next();
if (!comparator.equals(element1, element2)) {
return false;// NOPMD
}
}
}
return !(listIterator.hasNext() || otherListIterator.hasNext());