Package org.djunits.unit.si
Class SIPrefixFormatterTest
java.lang.Object
org.djunits.unit.si.SIPrefixFormatterTest
testje.java.
Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License
Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkDimensionless
(double value, boolean sign) Check the formatting for DimensionLess.static void
checkEnergy
(double value, boolean sign) Check the formatting for Energy.static void
checkMass
(double value, boolean sign) Check the formatting for Mass.static void
checks
(double value) Perform all checks using the specified exponent value.static void
checkTemperature
(double value, boolean sign) Check the formatting for Temperature.void
Test the double scalar SI Prefix formatter.
-
Constructor Details
-
SIPrefixFormatterTest
public SIPrefixFormatterTest()
-
-
Method Details
-
testDoubleSIPrefixFormatter
@Test public void testDoubleSIPrefixFormatter()Test the double scalar SI Prefix formatter. -
checks
public static void checks(double value) Perform all checks using the specified exponent value.- Parameters:
value
- double; the value
-
checkMass
public static void checkMass(double value, boolean sign) Check the formatting for Mass.- Parameters:
value
- double; the valuesign
- boolean; if true; invert the value
-
checkEnergy
public static void checkEnergy(double value, boolean sign) Check the formatting for Energy.- Parameters:
value
- double; the valuesign
- boolean; if true; invert the value
-
checkTemperature
public static void checkTemperature(double value, boolean sign) Check the formatting for Temperature.- Parameters:
value
- double; the valuesign
- boolean; if true; invert the value
-
checkDimensionless
public static void checkDimensionless(double value, boolean sign) Check the formatting for DimensionLess.- Parameters:
value
- double; the valuesign
- boolean; if true; invert the value
-