package library;

/** Un título del catálogo. Un libro puede tener varios ejemplares. */
public record Book(String isbn, String title, String author) {

    public Book {
        if (isbn == null || isbn.isBlank()) {
            throw new IllegalArgumentException("el libro necesita un ISBN");
        }
    }
}
