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 UnitType
SimpleUnit. unitType
type of the unitMethods in org.goplanit.utils.unit that return UnitType Modifier and Type Method Description static UnitType
UnitType. 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 double
TimeUnit. convertHourTo(UnitType to, double value)
convert hour to...static double
DistanceUnit. convertKmTo(UnitType to, double value)
convert km to...static double
DistanceUnit. convertMeterTo(UnitType to, double value)
convert meter to...static double
TimeUnit. convertMinuteTo(UnitType to, double value)
convert minute to...static double
VehiclesUnit. convertPcuTo(UnitType unitType, double value)
Convert pcu to...static double
TimeUnit. convertSecondTo(UnitType to, double value)
convert second to...static double
VehiclesUnit. convertVehiclesTo(UnitType unitType, double value)
Convert vehicles to...boolean
UnitType. isCompatible(UnitType unitType)
Verify compatibility based on whther or not the types belong to the same groupstatic SimpleUnit
Unit. of(UnitType type)
Create unit based on given typestatic GroupUnit
Unit. 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
-