package p.packer.models;

import java.util.List;
import java.util.Objects;

public record PackerWalkResult(
        List<PackerProbeResult> probeResults,
        List<PackerDiagnostic> diagnostics) {

    public static final PackerWalkResult EMPTY = new PackerWalkResult(List.of(), List.of());

    public PackerWalkResult {
        probeResults = List.copyOf(Objects.requireNonNull(probeResults, "probeResults"));
        diagnostics = List.copyOf(Objects.requireNonNull(diagnostics, "diagnostics"));
    }
}