Code example for Set

Methods: addAllremove

0
    Set<CommandLineOption> getGroupWith() {
        return groupWith;
    } 
 
    void groupWith(Set<CommandLineOption> options) {
        this.groupWith.addAll(options);
        this.groupWith.remove(this);
    } 
}