Change the tail of this list to point to the given list, so that this list becomes the list of the concatenation of the elements of both lists. This is a side-effecting operation on this list; for a non side-effecting alternative, see {@link #append}. Due to the problem of maintaining the URI invariant on a node, this operation will throw an exception if an attempt is made to concatenate onto an empty list. To avoid this, test for an empty list: if true replace the empty list with the argument list, otherwise proceed with the concatenate as usual. An alternative solution is to use {@link #append} and replace the original list with the return value.
@param list The argument list to concatenate to this list @exception EmptyListUpdateException if this list is the nil list
|
|
|
|
|
|
|
|