Package com.flir.thermalsdk.image.utils
Enum Class UnitsConverter.PressureUnit
java.lang.Object
java.lang.Enum<UnitsConverter.PressureUnit>
com.flir.thermalsdk.image.utils.UnitsConverter.PressureUnit
- All Implemented Interfaces:
UnitsConverter.UnitInterface
,Serializable
,Comparable<UnitsConverter.PressureUnit>
,Constable
- Enclosing class:
- UnitsConverter
public static enum UnitsConverter.PressureUnit
extends Enum<UnitsConverter.PressureUnit>
implements UnitsConverter.UnitInterface
Defines pressure units.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiondouble
getSiValue
(double value) Converts value in units method is called for to value in SI units.getUnit()
Gets the unit symbol.getUnitByName
(String name) Gets the unit by provided name.double
getValue
(double siValue) Converts SI value to value in units it is called for.static UnitsConverter.PressureUnit
Returns the enum constant of this class with the specified name.static UnitsConverter.PressureUnit[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.flir.thermalsdk.image.utils.UnitsConverter.UnitInterface
ordinal
-
Enum Constant Details
-
PASCAL
-
BAR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getUnit
Description copied from interface:UnitsConverter.UnitInterface
Gets the unit symbol.- Specified by:
getUnit
in interfaceUnitsConverter.UnitInterface
- Returns:
- unit symbol.
-
getValue
public double getValue(double siValue) Description copied from interface:UnitsConverter.UnitInterface
Converts SI value to value in units it is called for.- Specified by:
getValue
in interfaceUnitsConverter.UnitInterface
- Parameters:
siValue
- value in SI units.- Returns:
- value in units method is called for.
-
getSiValue
public double getSiValue(double value) Description copied from interface:UnitsConverter.UnitInterface
Converts value in units method is called for to value in SI units.- Specified by:
getSiValue
in interfaceUnitsConverter.UnitInterface
- Parameters:
value
- value in units method is called for.- Returns:
- value in SI units.
-
getUnitByName
Description copied from interface:UnitsConverter.UnitInterface
Gets the unit by provided name. First character is skipped in comparison. It is to prevent checking non-basic units.- Specified by:
getUnitByName
in interfaceUnitsConverter.UnitInterface
- Parameters:
name
- full unit name.- Returns:
UnitsConverter.UnitInterface
object of specified quantity, that has given unit.
-