Created
January 26, 2018 05:27
-
-
Save anonymous/e5959b4d022ed335953216250111df92 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
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