Class ColorTemperatureCharacteristic
- java.lang.Object
-
- io.github.hapjava.characteristics.impl.base.BaseCharacteristic<Integer>
-
- io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
-
- io.github.hapjava.characteristics.impl.lightbulb.ColorTemperatureCharacteristic
-
- All Implemented Interfaces:
Characteristic,EventableCharacteristic
public class ColorTemperatureCharacteristic extends IntegerCharacteristic implements EventableCharacteristic
This characteristic describes color temperature in mireds
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_MAX_VALUEstatic intDEFAULT_MIN_VALUE
-
Constructor Summary
Constructors Constructor Description ColorTemperatureCharacteristic(int minValue, int maxValue, Supplier<CompletableFuture<Integer>> getter, ExceptionalConsumer<Integer> setter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)ColorTemperatureCharacteristic(Supplier<CompletableFuture<Integer>> getter, ExceptionalConsumer<Integer> setter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
Method Summary
-
Methods inherited from class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
convert, getDefault, getValue, makeBuilder, setValue
-
Methods inherited from class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
setJsonValue, setValue, subscribe, supplyValue, toJson, unsubscribe
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.hapjava.characteristics.Characteristic
setValue, supplyValue, toJson
-
Methods inherited from interface io.github.hapjava.characteristics.EventableCharacteristic
subscribe, unsubscribe
-
-
-
-
Field Detail
-
DEFAULT_MIN_VALUE
public static final int DEFAULT_MIN_VALUE
- See Also:
- Constant Field Values
-
DEFAULT_MAX_VALUE
public static final int DEFAULT_MAX_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ColorTemperatureCharacteristic
public ColorTemperatureCharacteristic(int minValue, int maxValue, Supplier<CompletableFuture<Integer>> getter, ExceptionalConsumer<Integer> setter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
ColorTemperatureCharacteristic
public ColorTemperatureCharacteristic(Supplier<CompletableFuture<Integer>> getter, ExceptionalConsumer<Integer> setter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
-