Skip to content

Instantly share code, notes, and snippets.

Created January 26, 2018 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/e5959b4d022ed335953216250111df92 to your computer and use it in GitHub Desktop.
Save anonymous/e5959b4d022ed335953216250111df92 to your computer and use it in GitHub Desktop.
final class Rank {
private int value;
public Rank(int value) {
if (value < 1 || value > 13) {
throw new InvalidRankValue(value);
}
this.value = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment