Created
February 5, 2018 11:13
-
-
Save nicolopignatelli/b6e73b4dae2349a6979c37ff5b416c64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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