Uses of Class
org.openhab.core.library.types.QuantityType
Package
Description
-
Uses of QuantityType in org.openhab.core.library.items
-
Uses of QuantityType in org.openhab.core.library.types
Modifier and TypeFieldDescriptionstatic final QuantityType<javax.measure.quantity.Dimensionless>
QuantityType.ONE
static final QuantityType<javax.measure.quantity.Dimensionless>
QuantityType.ZERO
Modifier and TypeMethodDescriptionQuantityType.add
(QuantityType<T> state) Returns the sum of the givenQuantityType
with this QuantityType.QuantityType<?>
QuantityType.divide
(BigDecimal value) Divide this QuantityType by the given value.QuantityType<?>
QuantityType.divide
(QuantityType<?> state) Divide this QuantityType by the givenQuantityType
.QuantityType<?>
QuantityType.inverse()
Return the reciprocal of this QuantityType.QuantityType<?>
QuantityType.multiply
(BigDecimal value) Multiply thisQuantityType
by the given value.QuantityType<?>
QuantityType.multiply
(QuantityType<?> state) Multiply this QuantityType by the givenQuantityType
.QuantityType.negate()
Negates the value of this QuantityType leaving its unit untouched.QuantityType.offset
(QuantityType<T> offset, javax.measure.Unit<T> unit) Apply a given offset to this QuantityTypeQuantityType.subtract
(QuantityType<T> state) Subtract the givenQuantityType
from this QuantityType.@Nullable QuantityType<?>
QuantityType.toInvertibleUnit
(String targetUnit) @Nullable QuantityType<?>
QuantityType.toInvertibleUnit
(javax.measure.Unit<?> targetUnit) Convert this QuantityType to a newQuantityType
using the given target unit.@Nullable QuantityType<T>
@Nullable QuantityType<T>
QuantityType.toUnit
(javax.measure.Unit<?> targetUnit) Convert this QuantityType to a newQuantityType
using the given target unit.@Nullable QuantityType<T>
QuantityType.toUnitRelative
(String targetUnit) @Nullable QuantityType<T>
QuantityType.toUnitRelative
(javax.measure.Unit<T> targetUnit) Convert this QuantityType to a newQuantityType
using the given target unit.static <T extends javax.measure.Quantity<T>>
QuantityType<T>QuantityType.valueOf
(double value, javax.measure.Unit<T> unit) Static access toQuantityType(java.lang.Number,javax.measure.Unit<T>)
.static QuantityType<? extends javax.measure.Quantity<?>>
Static access toQuantityType(String)
.Modifier and TypeMethodDescriptionQuantityType.add
(QuantityType<T> state) Returns the sum of the givenQuantityType
with this QuantityType.int
QuantityType.compareTo
(QuantityType<T> o) QuantityType<?>
QuantityType.divide
(QuantityType<?> state) Divide this QuantityType by the givenQuantityType
.QuantityType<?>
QuantityType.multiply
(QuantityType<?> state) Multiply this QuantityType by the givenQuantityType
.QuantityType.offset
(QuantityType<T> offset, javax.measure.Unit<T> unit) Apply a given offset to this QuantityTypeQuantityType.subtract
(QuantityType<T> state) Subtract the givenQuantityType
from this QuantityType. -
Uses of QuantityType in org.openhab.core.model.script.lib
Modifier and TypeMethodDescriptionstatic QuantityType<?>
NumberExtensions.operator_divide
(Number x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_divide
(QuantityType<?> x, Number y) static QuantityType<?>
NumberExtensions.operator_divide
(QuantityType<?> x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_minus
(QuantityType<?> x) static QuantityType<?>
NumberExtensions.operator_minus
(QuantityType<?> x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_multiply
(Number x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_multiply
(QuantityType<?> x, Number y) static QuantityType<?>
NumberExtensions.operator_multiply
(QuantityType<?> x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_plus
(QuantityType<?> x, QuantityType<?> y) Modifier and TypeMethodDescriptionstatic QuantityType<?>
NumberExtensions.operator_divide
(Number x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_divide
(QuantityType<?> x, Number y) static QuantityType<?>
NumberExtensions.operator_divide
(QuantityType<?> x, QuantityType<?> y) static boolean
NumberExtensions.operator_equals
(QuantityType<?> left, Number right) static boolean
NumberExtensions.operator_equals
(QuantityType<?> left, QuantityType<?> right) static boolean
NumberExtensions.operator_greaterEqualsThan
(QuantityType<?> x, Number y) static boolean
NumberExtensions.operator_greaterEqualsThan
(QuantityType<?> x, QuantityType<?> y) static boolean
NumberExtensions.operator_greaterThan
(QuantityType<?> x, Number y) static boolean
NumberExtensions.operator_greaterThan
(QuantityType<?> x, QuantityType<?> y) static boolean
NumberExtensions.operator_lessEqualsThan
(QuantityType<?> x, Number y) static boolean
NumberExtensions.operator_lessEqualsThan
(QuantityType<?> x, QuantityType<?> y) static boolean
NumberExtensions.operator_lessThan
(QuantityType<?> x, Number y) static boolean
NumberExtensions.operator_lessThan
(QuantityType<?> x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_minus
(QuantityType<?> x) static QuantityType<?>
NumberExtensions.operator_minus
(QuantityType<?> x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_multiply
(Number x, QuantityType<?> y) static QuantityType<?>
NumberExtensions.operator_multiply
(QuantityType<?> x, Number y) static QuantityType<?>
NumberExtensions.operator_multiply
(QuantityType<?> x, QuantityType<?> y) static boolean
NumberExtensions.operator_notEquals
(QuantityType<?> left, Number right) static boolean
NumberExtensions.operator_notEquals
(QuantityType<?> left, QuantityType<?> right) static QuantityType<?>
NumberExtensions.operator_plus
(QuantityType<?> x, QuantityType<?> y) -
Uses of QuantityType in org.openhab.core.ui.items
Modifier and TypeMethodDescription@Nullable State
ItemUIRegistry.convertStateToLabelUnit
(QuantityType<?> state, String label) Convert the given state to the unit found in label.