Uses of Class
org.goplanit.utils.unit.UnitType
-
Packages that use UnitType Package Description org.goplanit.utils.unit -
-
Uses of UnitType in org.goplanit.utils.unit
Fields in org.goplanit.utils.unit declared as UnitType Modifier and Type Field Description protected UnitTypeSimpleUnit. unitTypetype of the unitMethods in org.goplanit.utils.unit that return UnitType Modifier and Type Method Description static UnitTypeUnitType. valueOf(String name)Returns the enum constant of this type with the specified name.static UnitType[]UnitType. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.goplanit.utils.unit with parameters of type UnitType Modifier and Type Method Description static doubleTimeUnit. convertHourTo(UnitType to, double value)convert hour to...static doubleDistanceUnit. convertKmTo(UnitType to, double value)convert km to...static doubleDistanceUnit. convertMeterTo(UnitType to, double value)convert meter to...static doubleTimeUnit. convertMinuteTo(UnitType to, double value)convert minute to...static doubleVehiclesUnit. convertPcuTo(UnitType unitType, double value)Convert pcu to...static doubleTimeUnit. convertSecondTo(UnitType to, double value)convert second to...static doubleVehiclesUnit. convertVehiclesTo(UnitType unitType, double value)Convert vehicles to...booleanUnitType. isCompatible(UnitType unitType)Verify compatibility based on whther or not the types belong to the same groupstatic SimpleUnitUnit. of(UnitType type)Create unit based on given typestatic GroupUnitUnit. of(UnitType[] numeratorUnits, UnitType[] denominatorUnits)Create unit based on given typesConstructors in org.goplanit.utils.unit with parameters of type UnitType Constructor Description DistanceUnit(UnitType unitType)ConstructorSimpleUnit(UnitType unitType)ConstructorTimeUnit(UnitType unitType)ConstructorVehiclesUnit(UnitType unitType)Constructor with default 1:1 conversion between vehicles and pcus
-