public class Units
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ARCMINUTE |
static java.lang.String |
ARCMINUTES_PER_HOUR |
static java.lang.String |
ARCMINUTES_PER_MINUTE |
static java.lang.String |
ARCMINUTES_PER_SECOND |
static java.lang.String |
ARCSECOND |
static java.lang.String |
ARCSECONDS_PER_HOUR |
static java.lang.String |
ARCSECONDS_PER_MINUTE |
static java.lang.String |
ARCSECONDS_PER_SECOND |
static java.lang.String |
DAY |
static java.lang.String |
DEGREE |
static java.lang.String |
DEGREES_PER_HOUR |
static java.lang.String |
DEGREES_PER_MINUTE |
static java.lang.String |
DEGREES_PER_SECOND |
static java.lang.String |
HOUR |
static java.lang.String |
KILOMETER |
static java.lang.String |
METER |
static java.lang.String |
MINUTES |
static java.lang.String |
RADIANS |
static java.lang.String |
RADIANS_PER_HOUR |
static java.lang.String |
RADIANS_PER_MINUTE |
static java.lang.String |
RADIANS_PER_SECONS |
static java.lang.String |
SECONDS |
Constructor and Description |
---|
Units() |
Modifier and Type | Method and Description |
---|---|
static double[] |
convertUnit(double[] orgValue,
java.lang.String orgUnit,
java.lang.String targetUnit)
Convert a numeric array with values expressed in a particular unit to another array expressed in another unit
|
static double |
convertUnit(double orgValue,
java.lang.String orgUnit,
java.lang.String targetUnit)
Convert a value from one unit to another
|
static float[] |
convertUnit(float[] orgValue,
java.lang.String orgUnit,
java.lang.String targetUnit)
Convert a numeric array with values expressed in a particular unit to another array expressed in another unit
|
static float |
convertUnit(float orgValue,
java.lang.String orgUnit,
java.lang.String targetUnit)
Convert a value from one unit to another
|
static int[] |
convertUnit(int[] orgValue,
java.lang.String orgUnit,
java.lang.String targetUnit)
Convert a numeric array with values expressed in a particular unit to another array expressed in another unit
|
static int |
convertUnit(int orgValue,
java.lang.String orgUnit,
java.lang.String targetUnit)
Convert a value from one unit to another
|
static long[] |
convertUnit(long[] orgValue,
java.lang.String orgUnit,
java.lang.String targetUnit)
Convert a numeric array with values expressed in a particular unit to another array expressed in another unit
|
static long |
convertUnit(long orgValue,
java.lang.String orgUnit,
java.lang.String targetUnit)
Convert a value from one unit to another
|
static boolean |
isValidAngleUnit(java.lang.String unit)
Get if a name of a unit is valid following the FD ICD for a Angle unit
|
static boolean |
isValidAngularVelocityUnit(java.lang.String unit)
Get if a name of a unit is valid following the FD ICD for a angular velocity unit
|
static boolean |
isValidDistanceUnit(java.lang.String unit)
Get if a name of a unit is valid following the FD ICD for a distance unit
|
static boolean |
isValidTimeUnit(java.lang.String unit)
Get if a name of a unit is valid following the FD ICD for a time unit
|
static boolean |
isValidUnit(java.lang.String unit)
Get if a name of a unit is valid following the FD ICD
|
public static java.lang.String DEGREE
public static java.lang.String RADIANS
public static java.lang.String ARCMINUTE
public static java.lang.String ARCSECOND
public static java.lang.String DEGREES_PER_SECOND
public static java.lang.String RADIANS_PER_SECONS
public static java.lang.String ARCMINUTES_PER_SECOND
public static java.lang.String ARCSECONDS_PER_SECOND
public static java.lang.String DEGREES_PER_MINUTE
public static java.lang.String RADIANS_PER_MINUTE
public static java.lang.String ARCMINUTES_PER_MINUTE
public static java.lang.String ARCSECONDS_PER_MINUTE
public static java.lang.String DEGREES_PER_HOUR
public static java.lang.String RADIANS_PER_HOUR
public static java.lang.String ARCMINUTES_PER_HOUR
public static java.lang.String ARCSECONDS_PER_HOUR
public static java.lang.String KILOMETER
public static java.lang.String METER
public static java.lang.String SECONDS
public static java.lang.String MINUTES
public static java.lang.String HOUR
public static java.lang.String DAY
public static long convertUnit(long orgValue, java.lang.String orgUnit, java.lang.String targetUnit)
orgValue
- The value to be convertedorgUnit
- The unit to be converted fromtargetUnit
- The unit to be converted topublic static int convertUnit(int orgValue, java.lang.String orgUnit, java.lang.String targetUnit)
orgValue
- The value to be convertedorgUnit
- The unit to be converted fromtargetUnit
- The unit to be converted topublic static double convertUnit(double orgValue, java.lang.String orgUnit, java.lang.String targetUnit)
orgValue
- The value to be convertedorgUnit
- The unit to be converted fromtargetUnit
- The unit to be converted topublic static float convertUnit(float orgValue, java.lang.String orgUnit, java.lang.String targetUnit)
orgValue
- The value to be convertedorgUnit
- The unit to be converted fromtargetUnit
- The unit to be converted topublic static float[] convertUnit(float[] orgValue, java.lang.String orgUnit, java.lang.String targetUnit)
orgValue
- The array to be convertedorgUnit
- The unit to be converted fromtargetUnit
- The unit to be converted topublic static int[] convertUnit(int[] orgValue, java.lang.String orgUnit, java.lang.String targetUnit)
orgValue
- The array to be convertedorgUnit
- The unit to be converted fromtargetUnit
- The unit to be converted topublic static long[] convertUnit(long[] orgValue, java.lang.String orgUnit, java.lang.String targetUnit)
orgValue
- The array to be convertedorgUnit
- The unit to be converted fromtargetUnit
- The unit to be converted topublic static double[] convertUnit(double[] orgValue, java.lang.String orgUnit, java.lang.String targetUnit)
orgValue
- The array to be convertedorgUnit
- The unit to be converted fromtargetUnit
- The unit to be converted topublic static boolean isValidAngleUnit(java.lang.String unit)
unit
- The name to checkedpublic static boolean isValidAngularVelocityUnit(java.lang.String unit)
unit
- The name to checkedpublic static boolean isValidDistanceUnit(java.lang.String unit)
unit
- The name to checkedpublic static boolean isValidTimeUnit(java.lang.String unit)
unit
- The name to checkedpublic static boolean isValidUnit(java.lang.String unit)
unit
- The name to checked