add
public void add(java.util.Collection<? extends N> newElements)
Adds the given elements to the collection. Note that implementing classes
may safely assume that the calling thread owns the monitor, i.e. there is
no need to synchronize on the collection retained by this
expandcollection and removals are allowed. Furthermore, the implementing
class may decide not to include any of the given newElements if it
decides that they are not to be investigated further.
- Specified by:
add
in interface ExpandCollection<N>
- Overrides:
add
in class DepthFirstExpandCollection<N>
- Parameters:
newElements
- the nodes to expand further