package p.packer.events;

public record PackerProgress(
        double value,
        boolean indeterminate) {

    public PackerProgress {
        if (!indeterminate && (value < 0.0 || value > 1.0)) {
            throw new IllegalArgumentException("value must be between 0.0 and 1.0 when determinate");
        }
    }
}
