append appends the contents of q onto the end of this catenablequeue . on completion , q is empty . concode_field_sep QueueNode<Item> head concode_elem_sep int size concode_elem_sep QueueNode<Item> tail concode_field_sep void enqueue concode_elem_sep Item nth concode_elem_sep int size concode_elem_sep Item dequeue concode_elem_sep boolean isEmpty concode_elem_sep String toString concode_elem_sep Item front
void function ( CatenableQueue < Item > arg0 ) { if ( arg0 != null ) { if ( head == null ) { head = arg0 . head ; } else { tail . next = arg0 . head ; } if ( arg0 . head != null ) { tail = arg0 . tail ; } size = size + arg0 . size ; arg0 . head = null ; arg0 . tail = null ; arg0 . size = 0 ; } }