public ArmylistModel(ArmylistModel toClone){ this.armylistArmy = toClone.armylistArmy; this.isCounted = toClone.isCounted; this.allowedWargear = toClone.allowedWargear; this.pointcostPerModel = toClone.pointcostPerModel; this.defaultSelectedAmount = toClone.defaultSelectedAmount; this.maxCount = toClone.maxCount; this.minCount = toClone.minCount; this.name = toClone.name; this.statTypeName = toClone.statTypeName; if(toClone.allowedWargearGroups != null) this.allowedWargearGroups = (LinkedList)toClone.allowedWargearGroups.clone();
public ArmylistModel(String name, ArmylistArmy army) { this.armylistArmy = army;
    public ArmylistModel(ArmylistModel toClone){        this.armylistArmy = toClone.armylistArmy;        this.isCounted = toClone.isCounted;        this.allowedWargear = toClone.allowedWargear;        this.pointcostPerModel = toClone.pointcostPerModel;        this.defaultSelectedAmount = toClone.defaultSelectedAmount;        this.maxCount = toClone.maxCount;        this.minCount = toClone.minCount;        this.name = toClone.name;        this.statTypeName = toClone.statTypeName;        if(toClone.allowedWargearGroups != null)            this.allowedWargearGroups = (LinkedList)toClone.allowedWargearGroups.clone();                if(toClone.stats != null){            Iterator iterator = toClone.stats.iterator();            LinkedList list = new LinkedList();            while(iterator.hasNext()){                list.add(new ModelStatHolder((ModelStatHolder)iterator.next()));            }            this.stats = list;        }                if(toClone.updates != null){            Iterator iterator = toClone.updates.iterator();            LinkedList list = new LinkedList();            while(iterator.hasNext()){                list.add( new Integer( this.armylistArmy.mapModelUpdate(new ArmylistModelUpdate(toClone.armylistArmy.getModelUpdate(((Integer)iterator.next()).intValue())))) );                        }            this.updates = list;        }                    }