public class Units extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ARC_MINUTE
Arc-minute unit name
|
static String |
ARC_SECOND
Arc-second unit name
|
static String |
BIN
Bin unit name
|
static String |
CALENDAR_MONTH
Calendar month unit name
|
static String |
CALENDAR_SECOND
Calendar second unit name
|
static String |
DAY
Day unit name
|
static String |
DEGREE
Degree unit name
|
static String |
GERMAN_LEGAL_METRE
German legal metre unit name
|
static String |
GRAD
Grad unit name
|
static String |
HECTOPASCAL
Hectopascal unit name
|
static String |
HOUR
Hour unit name
|
static String |
KILOMETRE
Kilometre unit name
|
static String |
METRE
Metre unit name
|
static String |
MICROMETRE
Micrometre unit name
|
static String |
MICRORADIAN
Microradian unit name
|
static String |
MICROSECOND
Microsecond unit name
|
static String |
MILLIMETRE
Millimetre unit name
|
static String |
MILLIRADIAN
Milliradian unit name
|
static String |
MILLISECOND
Millisecond unit name
|
static String |
MINUTE
Minute unit name
|
static String |
PARTS_PER_MILLION
Parts per million unit name
|
static String |
PASCAL
Pascal unit name
|
static String |
RADIAN
Radian unit name
|
static String |
SECOND
Second unit name
|
static String |
UNITY
Unity unit name
|
static String |
US_SURVEY_FOOT
US survey foot unit name
|
static String |
YEAR
Year unit name
|
| Constructor and Description |
|---|
Units() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canConvert(Unit unit1,
Unit unit2)
Determine if values can be converted between the two units
|
static double |
convert(double value,
Unit from,
Unit to)
Convert the value from a unit to a same typed unit, both with conversion
factors
|
static Unit |
getArcMinute()
Get an arc-minute unit
|
static Unit |
getArcSecond()
Get an arc-second unit
|
static Unit |
getBin()
Get a bin unit
|
static Unit |
getCalendarMonth()
Get a calendar month unit
|
static Unit |
getCalendarSecond()
Get a calendar second unit
|
static Unit |
getDay()
Get a day unit
|
static Unit |
getDefaultUnit(UnitType type)
Get the default unit for the unit type
|
static Unit |
getDegree()
Get a degree unit
|
static Unit |
getGermanLegalMetre()
Get a German legal metre unit
|
static Unit |
getGrad()
Get a grad unit
|
static Unit |
getHectopascal()
Get a hectopascal unit
|
static Unit |
getHour()
Get a hour unit
|
static Unit |
getKilometre()
Get a kilometre unit
|
static Unit |
getMetre()
Get a metre unit
|
static Unit |
getMicrometre()
Get a micrometre unit
|
static Unit |
getMicroradian()
Get a microradian unit
|
static Unit |
getMicrosecond()
Get a microsecond unit
|
static Unit |
getMillimetre()
Get a millimetre unit
|
static Unit |
getMilliradian()
Get a milliradian unit
|
static Unit |
getMillisecond()
Get a millisecond unit
|
static Unit |
getMinute()
Get a minute unit
|
static Unit |
getPartsPerMillion()
Get a parts per million unit
|
static Unit |
getPascal()
Get a pascal unit
|
static Unit |
getRadian()
Get a radian unit
|
static Unit |
getSecond()
Get a second unit
|
static Unit |
getUnity()
Get a unity unit
|
static Unit |
getUSSurveyFoot()
Get a US survey foot unit
|
static Unit |
getYear()
Get a year unit
|
public static final String MICROMETRE
public static final String MILLIMETRE
public static final String METRE
public static final String KILOMETRE
public static final String GERMAN_LEGAL_METRE
public static final String US_SURVEY_FOOT
public static final String MICRORADIAN
public static final String MILLIRADIAN
public static final String RADIAN
public static final String ARC_SECOND
public static final String ARC_MINUTE
public static final String DEGREE
public static final String GRAD
public static final String UNITY
public static final String BIN
public static final String PARTS_PER_MILLION
public static final String PASCAL
public static final String HECTOPASCAL
public static final String MICROSECOND
public static final String MILLISECOND
public static final String SECOND
public static final String MINUTE
public static final String HOUR
public static final String DAY
public static final String YEAR
public static final String CALENDAR_SECOND
public static final String CALENDAR_MONTH
public static Unit getMicrometre()
public static Unit getMillimetre()
public static Unit getMetre()
public static Unit getKilometre()
public static Unit getGermanLegalMetre()
public static Unit getUSSurveyFoot()
public static Unit getMicroradian()
public static Unit getMilliradian()
public static Unit getRadian()
public static Unit getArcSecond()
public static Unit getArcMinute()
public static Unit getDegree()
public static Unit getGrad()
public static Unit getUnity()
public static Unit getBin()
public static Unit getPartsPerMillion()
public static Unit getPascal()
public static Unit getHectopascal()
public static Unit getMicrosecond()
public static Unit getMillisecond()
public static Unit getSecond()
public static Unit getMinute()
public static Unit getHour()
public static Unit getDay()
public static Unit getYear()
public static Unit getCalendarSecond()
public static Unit getCalendarMonth()
public static Unit getDefaultUnit(UnitType type)
type - unit typepublic static boolean canConvert(Unit unit1, Unit unit2)
unit1 - first unitunit2 - second unitCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.