Skip to content

Commit 0296e3b

Browse files
committed
add comments
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
1 parent 6ae5dbb commit 0296e3b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/link/ItemChannelLink.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class ItemChannelLink extends AbstractLink {
3131
private final @NonNullByDefault({}) ChannelUID channelUID;
3232
private final Configuration configuration;
3333

34+
// this field tracks whether the item's current tags were applied from the linked channel's default tags
3435
private transient boolean tagsLinked = false;
3536

3637
/**
@@ -76,12 +77,15 @@ public int hashCode() {
7677
}
7778

7879
/**
79-
* Indicates if the linked channel is the actual source of the item's tags.
80+
* Check if the item's current tags were applied from the linked channel's default tags
8081
*/
8182
public boolean tagsLinked() {
8283
return tagsLinked;
8384
}
8485

86+
/**
87+
* Set the flag that indicates if the item's current tags were applied from the linked channel's default tags
88+
*/
8589
public void setTagsLinked(boolean value) {
8690
tagsLinked = value;
8791
}

0 commit comments

Comments
 (0)