public int addAllAbsent (Collection<? extends E> c)

Appends all of the elements in the specified collection that are not already contained in this list, to the end of this list, in the order that they are returned by the specified collection's iterator.

c    collection containing elements to be added to this list

Returns:  the number of elements added

NullPointerException    if the specified collection is null

See also: