Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.mywonderfulbnb.bnb.definition
final class Name {
private String value;
public Name(String value) {
if (value.isEmpty()) {
throw new NameCannotBeEmpty();
}
this.value = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.