/*
 ** 2013 August 11
 **
 ** The author disclaims copyright to this source code.  In place of
 ** a legal notice, here is a blessing:
 **    May you do good and not evil.
 **    May you find forgiveness for yourself and forgive others.
 **    May you share freely, never taking more than you give.
 */
package info.ata4.unity;

import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;

/**
 *
 * @author Nico Bergemann <barracuda415 at yahoo.de>
 */
public class DisUnitySettings {
    
    private List<File> files = new ArrayList<>();
    private DisUnityCommand command = DisUnityCommand.EXTRACT;
    private Set<Integer> classFilter;
    
    public List<File> getFiles() {
        return Collections.unmodifiableList(files);
    }

    public void setFiles(List<File> files) {
        files.clear();
        files.addAll(files);
    }

    public DisUnityCommand getCommand() {
        return command;
    }

    public void setCommand(DisUnityCommand cmd) {
        this.command = cmd;
    }
    
    public Set<Integer> getClassFilter() {
        return Collections.unmodifiableSet(classFilter);
    }
    
    public void setClassFilter(Set<Integer> classFilter) {
        classFilter.clear();
        classFilter.addAll(classFilter);
    }
    
    public boolean isClassFiltered(Integer classID) {
        return classFilter != null && !classFilter.contains(classID);
    }
}

@@ -375,38 +375,8 @@
 st;%0A
-import java.util.Collections;%0A
 impo
@@ -728,43 +728,13 @@
 urn 
-Collections.unmodifiableList(
 files
-)
 ;%0A  
@@ -795,50 +795,26 @@
     
-files.clear();%0A        files.addAll(
+this.files = 
 files
-)
 ;%0A  
@@ -1042,36 +1042,8 @@
 urn 
-Collections.unmodifiableSet(
 clas
@@ -1041,33 +1041,32 @@
 turn classFilter
-)
 ;%0A    %7D%0A    %0A   
@@ -1133,37 +1133,13 @@
     
-classFilter.clear();%0A        
+this.
 clas
@@ -1149,16 +1149,11 @@
 lter
-.addAll(
+ = 
 clas
@@ -1159,17 +1159,16 @@
 ssFilter
-)
 ;%0A    %7D%0A

Revert "Encapsulated collections"