// Path: warehouse-model/src/main/java/warehouse/BoxLabel.java
// @Value
// public class BoxLabel {
//     private final String refNo;
//     private final int quantity;
//     private final String boxType;
// }


import warehouse.BoxLabel;
import java.util.HashSet;
import java.util.Set;
package warehouse.products;



/**
 * Created by michal on 23.10.2017.
 */
public class PaletteValidator implements StorageUnitValidator {

    @Override
    public ValidationResult validate(RegisterNew registerNew) {
        Set<String> violations = new HashSet<>();
// Path: warehouse-model/src/main/java/warehouse/BoxLabel.java
// @Value
// public class BoxLabel {
//     private final String refNo;
//     private final int quantity;
//     private final String boxType;
// }


// Path: warehouse-model/src/main/java/warehouse/products/PaletteValidator.java
import warehouse.BoxLabel;
import java.util.HashSet;
import java.util.Set;

package warehouse.products;



/**
 * Created by michal on 23.10.2017.
 */
public class PaletteValidator implements StorageUnitValidator {

    @Override
    public ValidationResult validate(RegisterNew registerNew) {
        Set<String> violations = new HashSet<>();
        BoxLabel first = registerNew.getScannedBoxes().get(0);