Uses of Class
org.openhab.core.library.types.QuantityType
Packages that use QuantityType
Package
Description
-
Uses of QuantityType in org.openhab.core.library.items
Methods in org.openhab.core.library.items with parameters of type QuantityTypeModifier and TypeMethodDescriptionvoidNumberItem.send(QuantityType<?> command) Send a QuantityType command to the item.voidNumberItem.send(QuantityType<?> command, @Nullable String source) Send a QuantityType command to the item. -
Uses of QuantityType in org.openhab.core.library.types
Fields in org.openhab.core.library.types declared as QuantityTypeModifier and TypeFieldDescriptionstatic final QuantityType<javax.measure.quantity.Dimensionless> QuantityType.ONEstatic final QuantityType<javax.measure.quantity.Dimensionless> QuantityType.ZEROMethods in org.openhab.core.library.types that return QuantityTypeModifier and TypeMethodDescriptionQuantityType.add(QuantityType<T> state) Returns the sum of the givenQuantityTypewith 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 thisQuantityTypeby 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 givenQuantityTypefrom this QuantityType.@Nullable QuantityType<?> QuantityType.toInvertibleUnit(String targetUnit) @Nullable QuantityType<?> QuantityType.toInvertibleUnit(javax.measure.Unit<?> targetUnit) Convert this QuantityType to a newQuantityTypeusing the given target unit.@Nullable QuantityType<T> @Nullable QuantityType<T> QuantityType.toUnit(javax.measure.Unit<?> targetUnit) Convert this QuantityType to a newQuantityTypeusing 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 newQuantityTypeusing 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).Methods in org.openhab.core.library.types that return types with arguments of type QuantityTypeModifier and TypeMethodDescriptionprotected List<QuantityType> QuantityTypeArithmeticGroupFunction.DimensionalGroupFunction.toQuantityTypesOfUnit(Set<Item> items, javax.measure.Unit<?> unit) Convert a set ofItemto a respective list ofQuantityType.Methods in org.openhab.core.library.types with parameters of type QuantityTypeModifier and TypeMethodDescriptionQuantityType.add(QuantityType<T> state) Returns the sum of the givenQuantityTypewith this QuantityType.intQuantityType.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 givenQuantityTypefrom this QuantityType. -
Uses of QuantityType in org.openhab.core.model.script.lib
Methods in org.openhab.core.model.script.lib that return QuantityTypeModifier 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) Methods in org.openhab.core.model.script.lib with parameters of type QuantityTypeModifier 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 booleanNumberExtensions.operator_equals(QuantityType<?> left, Number right) static booleanNumberExtensions.operator_equals(QuantityType<?> left, QuantityType<?> right) static booleanNumberExtensions.operator_greaterEqualsThan(QuantityType<?> x, Number y) static booleanNumberExtensions.operator_greaterEqualsThan(QuantityType<?> x, QuantityType<?> y) static booleanNumberExtensions.operator_greaterThan(QuantityType<?> x, Number y) static booleanNumberExtensions.operator_greaterThan(QuantityType<?> x, QuantityType<?> y) static booleanNumberExtensions.operator_lessEqualsThan(QuantityType<?> x, Number y) static booleanNumberExtensions.operator_lessEqualsThan(QuantityType<?> x, QuantityType<?> y) static booleanNumberExtensions.operator_lessThan(QuantityType<?> x, Number y) static booleanNumberExtensions.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 booleanNumberExtensions.operator_notEquals(QuantityType<?> left, Number right) static booleanNumberExtensions.operator_notEquals(QuantityType<?> left, QuantityType<?> right) static QuantityType<?> NumberExtensions.operator_plus(QuantityType<?> x, QuantityType<?> y) -
Uses of QuantityType in org.openhab.core.ui.items
Methods in org.openhab.core.ui.items with parameters of type QuantityTypeModifier and TypeMethodDescription@Nullable StateItemUIRegistry.convertStateToLabelUnit(QuantityType<?> state, String label) Convert the given state to the unit found in label.