Improve javadoc for some addons (#15701)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -194,7 +194,7 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
|
||||
/**
|
||||
* send multiple "set_device_info" commands to device
|
||||
*
|
||||
* @param map HashMap<String, Object> (name, value of parameter)
|
||||
* @param map {@code HashMap<String, Object> (name, value of parameter)}
|
||||
*/
|
||||
public void sendDeviceCommands(HashMap<String, Object> map) {
|
||||
sendDeviceCommands(DEVICE_CMD_SETINFO, map);
|
||||
@@ -204,7 +204,7 @@ public class TapoDeviceConnector extends TapoDeviceHttpApi {
|
||||
* send multiple commands to device
|
||||
*
|
||||
* @param method Method command belongs to
|
||||
* @param map HashMap<String, Object> (name, value of parameter)
|
||||
* @param map {@code HashMap<String, Object> (name, value of parameter)}
|
||||
*/
|
||||
public void sendDeviceCommands(String method, HashMap<String, Object> map) {
|
||||
long now = System.currentTimeMillis();
|
||||
|
||||
@@ -177,7 +177,7 @@ public class TapoBridgeHandler extends BaseBridgeHandler {
|
||||
/**
|
||||
* Stop scheduler
|
||||
*
|
||||
* @param scheduler ScheduledFeature<?> which schould be stopped
|
||||
* @param scheduler {@code ScheduledFeature<?>} which schould be stopped
|
||||
*/
|
||||
protected void stopScheduler(@Nullable ScheduledFuture<?> scheduler) {
|
||||
if (scheduler != null) {
|
||||
|
||||
@@ -206,7 +206,7 @@ public abstract class TapoDevice extends BaseThingHandler {
|
||||
/**
|
||||
* Stop scheduler
|
||||
*
|
||||
* @param scheduler ScheduledFeature<?> which schould be stopped
|
||||
* @param scheduler {@code ScheduledFeature<?>} which schould be stopped
|
||||
*/
|
||||
protected void stopScheduler(@Nullable ScheduledFuture<?> scheduler) {
|
||||
if (scheduler != null) {
|
||||
|
||||
@@ -340,8 +340,8 @@ public class TapoUtils {
|
||||
* Return QuantityType with Time
|
||||
*
|
||||
* @param numVal Number with value
|
||||
* @param unit TimeUnit (Unit<Time>)
|
||||
* @return QuantityType<Time>
|
||||
* @param unit TimeUnit ({@code Unit<Time>})
|
||||
* @return {@code QuantityType<Time>}
|
||||
*/
|
||||
public static QuantityType<Time> getTimeType(@Nullable Number numVal, Unit<Time> unit) {
|
||||
return new QuantityType<>((numVal != null ? numVal : 0), unit);
|
||||
@@ -351,8 +351,8 @@ public class TapoUtils {
|
||||
* Return QuantityType with Power
|
||||
*
|
||||
* @param numVal Number with value
|
||||
* @param unit PowerUnit (Unit<Power>)
|
||||
* @return QuantityType<Power>
|
||||
* @param unit PowerUnit ({@code Unit<Power>})
|
||||
* @return {@code QuantityType<Power>}
|
||||
*/
|
||||
public static QuantityType<Power> getPowerType(@Nullable Number numVal, Unit<Power> unit) {
|
||||
return new QuantityType<>((numVal != null ? numVal : 0), unit);
|
||||
@@ -362,8 +362,8 @@ public class TapoUtils {
|
||||
* Return QuantityType with Energy
|
||||
*
|
||||
* @param numVal Number with value
|
||||
* @param unit PowerUnit (Unit<Power>)
|
||||
* @return QuantityType<Energy>
|
||||
* @param unit PowerUnit ({@code Unit<Power>})
|
||||
* @return {@code QuantityType<Energy>}
|
||||
*/
|
||||
public static QuantityType<Energy> getEnergyType(@Nullable Number numVal, Unit<Energy> unit) {
|
||||
return new QuantityType<>((numVal != null ? numVal : 0), unit);
|
||||
|
||||
@@ -21,7 +21,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
/**
|
||||
* {@TapoSubRequest} holds data sent to device in order to act on a child
|
||||
* {@link TapoSubRequest} holds data sent to device in order to act on a child
|
||||
*
|
||||
* @author Gaël L'hopital - Initial contribution
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user