package de.effigenix.domain.inventory;

import java.util.UUID;

public record CountItemId(String value) {

    public CountItemId {
        if (value == null || value.isBlank()) {
            throw new IllegalArgumentException("CountItemId must not be blank");
        }
    }

    public static CountItemId generate() {
        return new CountItemId(UUID.randomUUID().toString());
    }

    public static CountItemId of(String value) {
        return new CountItemId(value);
    }
}
