E unlinkLast ( ) { final E l = last ; final E prev = l . getPrevious ( ) ; l . setPrevious ( null ) ; last = prev ; if ( prev == null ) { first = null ; } else { prev . setNext ( null ) ; } return l ; }
Unlinks the non - null last element .