question: @ Override public boolean equals ( Object object ) { if ( this == object ) { return true ; } if ( object instanceof List ) { List < ? > list = ( List < ? > ) object ; if ( list . size ( ) != size ( ) ) { return false ; } Iterator < ? > it1 = iterator ( ) , it2 = list . iterator ( ) ; while ( it1 . hasNext ( ) ) { Object e1 = it1 . next ( ) , e2 = it2 . next ( ) ; if ( ! ( e1 == null ? e2 == null : e1 . equals ( e2 ) ) ) { return false ; } } return true ; } return false ; }
target:  Compares the specified object to this list and return true if they are equal. Two lists are equal when they both contain the same objects in the same order.