public class HandBuilder2 implements HandBuilder {
public HandBuilder2(){}
public static Hand g = new Hand1(0);
public static Hand c = new Hand1(1);
public static Hand p = new Hand1(2);
public static Hand[] te={g,c,p};
@Override
public Hand getInstance(int hand) {
// TODO 自動生成されたメソッド・スタブ
if(hand <0 || hand>2 ){
return null;
}
return te[hand];
}