MCPcopy Create free account
hub / github.com/ddd-by-examples/library / Author

Class Author

src/main/java/io/pillopl/library/catalogue/Book.java:41–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41@Value
42class Author {
43
44 @NonNull String name;
45
46 Author(String name) {
47 if (name.isEmpty()) {
48 throw new IllegalArgumentException("Author cannot be empty");
49 }
50 this.name = name.trim();
51 }
52}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected