@@ -0,0 +1,1865 @@
+package hu.webarticum.jsatbuilder.builder.common;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.Collection;%0Aimport java.util.ListIterator;%0A%0Aimport hu.webarticum.jsatbuilder.builder.core.Definition;%0A%0Apublic class DefinitionLiteralList extends ArrayList%3CDefinitionLiteral%3E %7B%0A    %0A    private static final long serialVersionUID = 1L;%0A%0A    public DefinitionLiteralList() %7B%0A        super();%0A    %7D%0A    %0A    public DefinitionLiteralList(Definition... definitions) %7B%0A        this(Arrays.asList(definitions));%0A    %7D%0A%0A    public DefinitionLiteralList(DefinitionLiteral... literals) %7B%0A        this(Arrays.asList(literals));%0A    %7D%0A%0A    public DefinitionLiteralList(Collection%3C?%3E literalsOrDefinitions) %7B%0A        super(new LiteralListManager(literalsOrDefinitions).getLiterals());%0A    %7D%0A%0A    public DefinitionLiteralList append(Definition definition) %7B%0A        add(new DefinitionLiteral(definition, true));%0A        return this;%0A    %7D%0A%0A    public DefinitionLiteralList append(DefinitionLiteral literal) %7B%0A        add(literal);%0A        return this;%0A    %7D%0A    %0A    public DefinitionLiteralList setAll(boolean value) %7B%0A        ListIterator%3CDefinitionLiteral%3E iterator = listIterator();%0A        while (iterator.hasNext()) %7B%0A            DefinitionLiteral currentLiteral = iterator.next();%0A            if (currentLiteral.isPositive() != value) %7B%0A                iterator.set(new DefinitionLiteral(currentLiteral.getDefinition(), value));%0A            %7D%0A        %7D%0A        return this;%0A    %7D%0A%0A    public DefinitionLiteralList negateAll() %7B%0A        ListIterator%3CDefinitionLiteral%3E iterator = listIterator();%0A        while (iterator.hasNext()) %7B%0A            DefinitionLiteral currentLiteral = iterator.next();%0A            iterator.set(new DefinitionLiteral(currentLiteral.getDefinition(), !currentLiteral.isPositive()));%0A        %7D%0A        return this;%0A    %7D%0A    %0A%7D%0A

Add DefinitionLiteralList