Class UnitsTools
java.lang.Object
org.checkerframework.checker.units.util.UnitsTools
Utility methods to generate annotated types and to convert between them.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final @org.checkerframework.checker.units.qual.A intstatic final @org.checkerframework.checker.units.qual.C intstatic final @org.checkerframework.checker.units.qual.cd intstatic final @org.checkerframework.checker.units.qual.degrees doublestatic final @org.checkerframework.checker.units.qual.g intstatic final @org.checkerframework.checker.units.qual.h intstatic final @org.checkerframework.checker.units.qual.K intstatic final @org.checkerframework.checker.units.qual.kg intstatic final @org.checkerframework.checker.units.qual.km intstatic final @org.checkerframework.checker.units.qual.km2 intstatic final @org.checkerframework.checker.units.qual.km3 intstatic final @org.checkerframework.checker.units.qual.kmPERh intstatic final @org.checkerframework.checker.units.qual.kN intstatic final @org.checkerframework.checker.units.qual.m intstatic final @org.checkerframework.checker.units.qual.m2 intstatic final @org.checkerframework.checker.units.qual.m3 intstatic final @org.checkerframework.checker.units.qual.min intstatic final @org.checkerframework.checker.units.qual.mm intstatic final @org.checkerframework.checker.units.qual.mm2 intstatic final @org.checkerframework.checker.units.qual.mm3 intstatic final @org.checkerframework.checker.units.qual.mol intstatic final @org.checkerframework.checker.units.qual.mPERs intstatic final @org.checkerframework.checker.units.qual.mPERs2 intstatic final @org.checkerframework.checker.units.qual.N intstatic final @org.checkerframework.checker.units.qual.radians doublestatic final @org.checkerframework.checker.units.qual.s intstatic final @org.checkerframework.checker.units.qual.t int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic @org.checkerframework.checker.units.qual.K intfromCelsiusToKelvin(@org.checkerframework.checker.units.qual.C int c) static @org.checkerframework.checker.units.qual.kg intfromGramToKiloGram(@org.checkerframework.checker.units.qual.g int g) static @org.checkerframework.checker.units.qual.min intfromHourToMinute(@org.checkerframework.checker.units.qual.h int h) static @org.checkerframework.checker.units.qual.C intfromKelvinToCelsius(@org.checkerframework.checker.units.qual.K int k) static @org.checkerframework.checker.units.qual.g intfromKiloGramToGram(@org.checkerframework.checker.units.qual.kg int kg) static @org.checkerframework.checker.units.qual.t intfromKiloGramToMetricTon(@org.checkerframework.checker.units.qual.kg int kg) static @org.checkerframework.checker.units.qual.mPERs doublefromKiloMeterPerHourToMeterPerSecond(@org.checkerframework.checker.units.qual.kmPERh double kmph) static @org.checkerframework.checker.units.qual.m intfromKiloMeterToMeter(@org.checkerframework.checker.units.qual.km int km) static @org.checkerframework.checker.units.qual.N intfromKiloNewtonToNewton(@org.checkerframework.checker.units.qual.kN int kN) static @org.checkerframework.checker.units.qual.kmPERh doublefromMeterPerSecondToKiloMeterPerHour(@org.checkerframework.checker.units.qual.mPERs double mps) static @org.checkerframework.checker.units.qual.km intfromMeterToKiloMeter(@org.checkerframework.checker.units.qual.m int m) static @org.checkerframework.checker.units.qual.mm intfromMeterToMilliMeter(@org.checkerframework.checker.units.qual.m int m) static @org.checkerframework.checker.units.qual.kg intfromMetricTonToKiloGram(@org.checkerframework.checker.units.qual.t int t) static @org.checkerframework.checker.units.qual.m intfromMilliMeterToMeter(@org.checkerframework.checker.units.qual.mm int mm) static @org.checkerframework.checker.units.qual.h intfromMinuteToHour(@org.checkerframework.checker.units.qual.min int min) static @org.checkerframework.checker.units.qual.s intfromMinuteToSecond(@org.checkerframework.checker.units.qual.min int min) static @org.checkerframework.checker.units.qual.kN intfromNewtonToKiloNewton(@org.checkerframework.checker.units.qual.N int N) static @org.checkerframework.checker.units.qual.min intfromSecondToMinute(@org.checkerframework.checker.units.qual.s int s) static @org.checkerframework.checker.units.qual.degrees doubletoDegrees(@org.checkerframework.checker.units.qual.radians double angrad) static @org.checkerframework.checker.units.qual.radians doubletoRadians(@org.checkerframework.checker.units.qual.degrees double angdeg) 
- 
Field Details- 
mPERs2public static final @org.checkerframework.checker.units.qual.mPERs2 int mPERs2- See Also:
 
- 
radpublic static final @org.checkerframework.checker.units.qual.radians double rad- See Also:
 
- 
degpublic static final @org.checkerframework.checker.units.qual.degrees double deg- See Also:
 
- 
mm2public static final @org.checkerframework.checker.units.qual.mm2 int mm2- See Also:
 
- 
m2public static final @org.checkerframework.checker.units.qual.m2 int m2- See Also:
 
- 
km2public static final @org.checkerframework.checker.units.qual.km2 int km2- See Also:
 
- 
mm3public static final @org.checkerframework.checker.units.qual.mm3 int mm3- See Also:
 
- 
m3public static final @org.checkerframework.checker.units.qual.m3 int m3- See Also:
 
- 
km3public static final @org.checkerframework.checker.units.qual.km3 int km3- See Also:
 
- 
Apublic static final @org.checkerframework.checker.units.qual.A int A- See Also:
 
- 
cdpublic static final @org.checkerframework.checker.units.qual.cd int cd- See Also:
 
- 
mmpublic static final @org.checkerframework.checker.units.qual.mm int mm- See Also:
 
- 
mpublic static final @org.checkerframework.checker.units.qual.m int m- See Also:
 
- 
kmpublic static final @org.checkerframework.checker.units.qual.km int km- See Also:
 
- 
gpublic static final @org.checkerframework.checker.units.qual.g int g- See Also:
 
- 
kgpublic static final @org.checkerframework.checker.units.qual.kg int kg- See Also:
 
- 
tpublic static final @org.checkerframework.checker.units.qual.t int t- See Also:
 
- 
Npublic static final @org.checkerframework.checker.units.qual.N int N- See Also:
 
- 
kNpublic static final @org.checkerframework.checker.units.qual.kN int kN- See Also:
 
- 
mPERspublic static final @org.checkerframework.checker.units.qual.mPERs int mPERs- See Also:
 
- 
kmPERhpublic static final @org.checkerframework.checker.units.qual.kmPERh int kmPERh- See Also:
 
- 
molpublic static final @org.checkerframework.checker.units.qual.mol int mol- See Also:
 
- 
Kpublic static final @org.checkerframework.checker.units.qual.K int K- See Also:
 
- 
Cpublic static final @org.checkerframework.checker.units.qual.C int C- See Also:
 
- 
spublic static final @org.checkerframework.checker.units.qual.s int s- See Also:
 
- 
minpublic static final @org.checkerframework.checker.units.qual.min int min- See Also:
 
- 
hpublic static final @org.checkerframework.checker.units.qual.h int h- See Also:
 
 
- 
- 
Constructor Details- 
UnitsToolspublic UnitsTools()
 
- 
- 
Method Details- 
toRadianspublic static @org.checkerframework.checker.units.qual.radians double toRadians(@org.checkerframework.checker.units.qual.degrees double angdeg) 
- 
toDegreespublic static @org.checkerframework.checker.units.qual.degrees double toDegrees(@org.checkerframework.checker.units.qual.radians double angrad) 
- 
fromMilliMeterToMeterpublic static @org.checkerframework.checker.units.qual.m int fromMilliMeterToMeter(@org.checkerframework.checker.units.qual.mm int mm) 
- 
fromMeterToMilliMeterpublic static @org.checkerframework.checker.units.qual.mm int fromMeterToMilliMeter(@org.checkerframework.checker.units.qual.m int m) 
- 
fromMeterToKiloMeterpublic static @org.checkerframework.checker.units.qual.km int fromMeterToKiloMeter(@org.checkerframework.checker.units.qual.m int m) 
- 
fromKiloMeterToMeterpublic static @org.checkerframework.checker.units.qual.m int fromKiloMeterToMeter(@org.checkerframework.checker.units.qual.km int km) 
- 
fromGramToKiloGrampublic static @org.checkerframework.checker.units.qual.kg int fromGramToKiloGram(@org.checkerframework.checker.units.qual.g int g) 
- 
fromKiloGramToGrampublic static @org.checkerframework.checker.units.qual.g int fromKiloGramToGram(@org.checkerframework.checker.units.qual.kg int kg) 
- 
fromKiloGramToMetricTonpublic static @org.checkerframework.checker.units.qual.t int fromKiloGramToMetricTon(@org.checkerframework.checker.units.qual.kg int kg) 
- 
fromMetricTonToKiloGrampublic static @org.checkerframework.checker.units.qual.kg int fromMetricTonToKiloGram(@org.checkerframework.checker.units.qual.t int t) 
- 
fromNewtonToKiloNewtonpublic static @org.checkerframework.checker.units.qual.kN int fromNewtonToKiloNewton(@org.checkerframework.checker.units.qual.N int N) 
- 
fromKiloNewtonToNewtonpublic static @org.checkerframework.checker.units.qual.N int fromKiloNewtonToNewton(@org.checkerframework.checker.units.qual.kN int kN) 
- 
fromMeterPerSecondToKiloMeterPerHourpublic static @org.checkerframework.checker.units.qual.kmPERh double fromMeterPerSecondToKiloMeterPerHour(@org.checkerframework.checker.units.qual.mPERs double mps) 
- 
fromKiloMeterPerHourToMeterPerSecondpublic static @org.checkerframework.checker.units.qual.mPERs double fromKiloMeterPerHourToMeterPerSecond(@org.checkerframework.checker.units.qual.kmPERh double kmph) 
- 
fromKelvinToCelsiuspublic static @org.checkerframework.checker.units.qual.C int fromKelvinToCelsius(@org.checkerframework.checker.units.qual.K int k) 
- 
fromCelsiusToKelvinpublic static @org.checkerframework.checker.units.qual.K int fromCelsiusToKelvin(@org.checkerframework.checker.units.qual.C int c) 
- 
fromSecondToMinutepublic static @org.checkerframework.checker.units.qual.min int fromSecondToMinute(@org.checkerframework.checker.units.qual.s int s) 
- 
fromMinuteToSecondpublic static @org.checkerframework.checker.units.qual.s int fromMinuteToSecond(@org.checkerframework.checker.units.qual.min int min) 
- 
fromMinuteToHourpublic static @org.checkerframework.checker.units.qual.h int fromMinuteToHour(@org.checkerframework.checker.units.qual.min int min) 
- 
fromHourToMinutepublic static @org.checkerframework.checker.units.qual.min int fromHourToMinute(@org.checkerframework.checker.units.qual.h int h) 
 
-