Created
December 13, 2017 20:36
-
-
Save mike-neck/f46cd0e203452c3a70235cac61f35881 to your computer and use it in GitHub Desktop.
http://teafortw0.hatenablog.com/entry/2017/12/13/220710 に対する疑問のためのコード
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 abstract class BloodType { | |
public static BloodType A = new BloodType(0, "A") {}; | |
public static BloodType B = new BloodType(1, "B") {}; | |
public static BloodType O = new BloodType(2, "O") {}; | |
public static BloodType AB = new BloodType(3, "AB") {}; | |
private final int ordinal; | |
private final String name; | |
private BloodType(final int ordinal, final String name) { | |
this.ordinal = ordinal; | |
this.name = name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment