Created
May 18, 2012 16:58
-
-
Save krisskross/2726401 to your computer and use it in GitHub Desktop.
This file contains 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
public Item(String id, String name) { | |
this.id = Preconditions.checkNotNull(id, "id must not be null"); | |
this.name = Preconditions.checkNotNull(name, "name must not be null"); | |
Preconditions.checkArgument(name.length() < 6, "name must be longer than 6 chars"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment