getTimeUnitInt function
Implementation
int getTimeUnitInt(TimeUnit tu) {
switch (tu) {
case TimeUnit.one:
return 1;
case TimeUnit.five:
return 5;
case TimeUnit.ten:
return 10;
case TimeUnit.fifteen:
return 15;
case TimeUnit.twenty:
return 20;
case TimeUnit.thirty:
return 30;
case TimeUnit.hour:
return 60;
default:
return 1;
}
}