Add Javadoc for new overloads (#4727)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen
2025-04-18 11:37:52 +02:00
committed by GitHub
parent fc8d791dbd
commit 69c0be1aa5
2 changed files with 11 additions and 0 deletions
@@ -248,5 +248,10 @@ public interface Thing extends Identifiable<ThingUID> {
*/
void setSemanticEquipmentTag(@Nullable String semanticEquipmentTag);
/**
* Set the semantic (equipment) tag of the {@link Thing}.
*
* @param semanticEquipmentTag the semantic (equipment) tag or {@code null} if no tag has been configured.
*/
void setSemanticEquipmentTag(@Nullable SemanticTag semanticEquipmentTag);
}
@@ -266,6 +266,12 @@ public class ThingBuilder {
return this;
}
/**
* Set the semantic (equipment) tag for this thing
*
* @param semanticEquipmentTag semantic (equipment) tag for this thing
* @return the {@link ThingBuilder} itself
*/
public ThingBuilder withSemanticEquipmentTag(SemanticTag semanticEquipmentTag) {
return withSemanticEquipmentTag(semanticEquipmentTag.getName());
}