Skip to content

Commit 69c0be1

Browse files
authored
Add Javadoc for new overloads (openhab#4727)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
1 parent fc8d791 commit 69c0be1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/Thing.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,5 +248,10 @@ public interface Thing extends Identifiable<ThingUID> {
248248
*/
249249
void setSemanticEquipmentTag(@Nullable String semanticEquipmentTag);
250250

251+
/**
252+
* Set the semantic (equipment) tag of the {@link Thing}.
253+
*
254+
* @param semanticEquipmentTag the semantic (equipment) tag or {@code null} if no tag has been configured.
255+
*/
251256
void setSemanticEquipmentTag(@Nullable SemanticTag semanticEquipmentTag);
252257
}

bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/binding/builder/ThingBuilder.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@ public ThingBuilder withSemanticEquipmentTag(@Nullable String semanticEquipmentT
266266
return this;
267267
}
268268

269+
/**
270+
* Set the semantic (equipment) tag for this thing
271+
*
272+
* @param semanticEquipmentTag semantic (equipment) tag for this thing
273+
* @return the {@link ThingBuilder} itself
274+
*/
269275
public ThingBuilder withSemanticEquipmentTag(SemanticTag semanticEquipmentTag) {
270276
return withSemanticEquipmentTag(semanticEquipmentTag.getName());
271277
}

0 commit comments

Comments
 (0)