public enum Sample {
A(10), B(20);

Sample(int n) {

}
}
これでおk