Because this is a list, its possible for a Thing to have duplicate channels with the same ID. This also means that calling "getChannel(String id)" will only return the first instance of the duplicate channel. Is this by design or should this be considered a bug? I would think this should rather be a Map structure keyed off the Channel's id.
]]>Dan Cunningham2016-10-04T19:37:35-00:00Re: Duplicate channels on Thing
https://www.eclipse.org/forums/index.php/mv/msg/1081737/1745114/#msg_1745114
Imho, a SortedSet would have been the better choice (together with a Channel.equals() that checks equality of the UID).
Feel free to add an issue, we should indeed at least ensure that no duplicate channel uids end up in the list.
]]>Kai Kreuzer2016-10-05T10:45:32-00:00Re: Duplicate channels on Thing
https://www.eclipse.org/forums/index.php/mv/msg/1081737/1745132/#msg_1745132
Dan Cunningham2016-10-05T14:10:29-00:00