void unlink(Node<E> p,Node<E> trail){
  p.item=null;
  trail.next=p.next;
  if (last == p)   last=trail;
  if (count.getAndDecrement() == capacity)   notFull.signal();
}

void unlink ( Node < E > p , Node < E > trail ) { p . item = null ; trail . next = p . next ; if ( last == p ) last = trail ; if ( count . getAndDecrement ( ) == capacity ) notFull . signal ( ) ; }
unlinks interior node p with predecessor trail .
