public boolean remove ( T element ) { for ( Iterator < Node < T > > it = nodes . iterator ( ) ; it . hasNext ( ) ; ) if ( ObjectUtil . equalsOrNull ( it . next ( ) . element , element ) ) { it . remove ( ) ; return true ; } return false ; }
Remove the first occurrence of the given element .