Code example for Set

Methods: addAll

0
    public void setMainSources(FunctionalSourceSet mainSources) { 
        this.mainSources = mainSources; 
    } 
 
    public void source(Object sources) { 
        additionalSources.addAll(sourcesNotationParser.parseNotation(sources)); 
    } 
 
    public FunctionalSourceSet getMainSources() { 
        return mainSources; 
    } 
 
    public DomainObjectSet<LanguageSourceSet> getSources() { 
        Set<LanguageSourceSet> all = Sets.newLinkedHashSet(); 
        all.addAll(mainSources); 
        all.addAll(additionalSources); 
        return new DefaultDomainObjectSet<LanguageSourceSet>(LanguageSourceSet.class, all); 
    } 
}