- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
public int sum(final Type type, final int increment) {
switch(type) {
case REDOS:
return redos += increment;
case ONCE:
return onceRedoneOrders += increment;
case TWICE:
return twiceRedoneOrders += increment;
case THRICE:
return thriceRedoneOrders += increment;
case MORE:
return moreRedoneOrders += increment;
default:
break;
}
throw new RuntimeException();
}
neeedle 06.06.2013 09:57 # 0
странный код.
Lure Of Chaos 06.06.2013 12:46 # 0
absolut 07.06.2013 13:04 # −1
3.14159265 07.06.2013 13:52 # +3
break;
absolut 07.06.2013 14:46 # +1
guest 22.06.2013 11:39 # 0