2022-11-05 23:24:05 +04:00
|
|
|
public enum RollersCount {
|
|
|
|
Four,
|
|
|
|
Five,
|
2022-12-06 15:01:05 +04:00
|
|
|
Six;
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
return switch (this) {
|
|
|
|
case Four -> 4;
|
|
|
|
case Five -> 5;
|
|
|
|
case Six -> 6;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
return Integer.toString(getValue());
|
|
|
|
}
|
2022-11-05 23:24:05 +04:00
|
|
|
}
|