23 lines
332 B
Java
23 lines
332 B
Java
|
public enum OarsCount {
|
||
|
One,
|
||
|
Two,
|
||
|
Three;
|
||
|
|
||
|
public static OarsCount GetOarsCount(int Value)
|
||
|
{
|
||
|
switch(Value)
|
||
|
{
|
||
|
case 1:
|
||
|
return One;
|
||
|
|
||
|
case 2:
|
||
|
return Two;
|
||
|
|
||
|
case 3:
|
||
|
return Three;
|
||
|
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
}
|