Code example for Collection

Methods: addAll

0
 
	Collection<String> useSymbols = new LinkedList<String>();
	 
	public void addChildSymbols(Collection<String> childSymbols)
	{ 
		useSymbols.addAll(childSymbols);
	} 
	 
	public Collection<String> upstreamSymbols()
	{ 
		// empty, unless a child-class adds something 
		return symbolsForUpstream; 
	} 
 
	public Collection<UseOrDef> useOrDefsFromChildSymbols()
	{ 
		LinkedList<UseOrDef> retval = createUsesForAllSymbols(useSymbols);	
		return retval;
	} 
}