ChannelUID extends UID { ChannelUID() { super(); } ChannelUID();  ChannelUID(String channelUid);  ChannelUID(ThingUID thingUID, String id);  ChannelUID(ChannelGroupUID channelGroupUID, String id);  ChannelUID(ThingUID thingUID, String groupId, String id); String getId(); String getIdWithoutGroup(); boolean isInGroup(); @Nullable String getGroupId(); ThingUID getThingUID(); static final String CHANNEL_SEGMENT_PATTERN; static final String CHANNEL_GROUP_SEPARATOR; }
@Test public void testChannelUID() { ChannelUID channelUID = new ChannelUID(THING_UID, CHANNEL_ID); assertEquals("binding:thing-type:thing:id", channelUID.toString()); assertFalse(channelUID.isInGroup()); assertEquals(CHANNEL_ID, channelUID.getId()); assertEquals(CHANNEL_ID, channelUID.getIdWithoutGroup()); assertNull(channelUID.getGroupId()); assertEquals(THING_UID, channelUID.getThingUID()); }