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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckDimensionless(double value, boolean sign) Check the formatting for DimensionLess.static voidcheckEnergy(double value, boolean sign) Check the formatting for Energy.static voidcheckMass(double value, boolean sign) Check the formatting for Mass.static voidchecks(double value) Perform all checks using the specified exponent value.static voidcheckTemperature(double value, boolean sign) Check the formatting for Temperature.voidTest 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- the value
-
checkMass
public static void checkMass(double value, boolean sign) Check the formatting for Mass.- Parameters:
value- the valuesign- if true; invert the value
-
checkEnergy
public static void checkEnergy(double value, boolean sign) Check the formatting for Energy.- Parameters:
value- the valuesign- if true; invert the value
-
checkTemperature
public static void checkTemperature(double value, boolean sign) Check the formatting for Temperature.- Parameters:
value- the valuesign- if true; invert the value
-
checkDimensionless
public static void checkDimensionless(double value, boolean sign) Check the formatting for DimensionLess.- Parameters:
value- the valuesign- if true; invert the value
-