test_class.declarator: THING_TYPE_UID = new ThingTypeUID("test", "test")
test_class.modifier: private static final
test_class.original_string: private static final ThingTypeUID THING_TYPE_UID = new ThingTypeUID("test", "test");
test_class.type: ThingTypeUID
test_class.var_name: THING_TYPE_UID
test_class.declarator: THING_UID = new ThingUID(THING_TYPE_UID, "test")
test_class.modifier: private static final
test_class.original_string: private static final ThingUID THING_UID = new ThingUID(THING_TYPE_UID, "test");
test_class.type: ThingUID
test_class.var_name: THING_UID
test_class.declarator: KEY1 = "key1"
test_class.modifier: private static final
test_class.original_string: private static final String KEY1 = "key1";
test_class.type: String
test_class.var_name: KEY1
test_class.declarator: KEY2 = "key2"
test_class.modifier: private static final
test_class.original_string: private static final String KEY2 = "key2";
test_class.type: String
test_class.var_name: KEY2
test_class.declarator: VALUE1 = "value1"
test_class.modifier: private static final
test_class.original_string: private static final String VALUE1 = "value1";
test_class.type: String
test_class.var_name: VALUE1
test_class.declarator: VALUE2 = "value2"
test_class.modifier: private static final
test_class.original_string: private static final String VALUE2 = "value2";
test_class.type: String
test_class.var_name: VALUE2
test_class.declarator: properties = Map.of(KEY1, VALUE1, KEY2, VALUE2)
test_class.modifier: private final
test_class.original_string: private final Map<String, String> properties = Map.of(KEY1, VALUE1, KEY2, VALUE2);
test_class.type: Map<String, String>
test_class.var_name: properties
test_class.declarator: thingBuilder
test_class.modifier: private
test_class.original_string: private ThingBuilder thingBuilder;
test_class.type: ThingBuilder
test_class.var_name: thingBuilder
test_class.file: bundles/org.openhab.core.thing/src/test/java/org/openhab/core/thing/binding/builder/ThingBuilderTest.java
test_class.identifier: ThingBuilderTest
test_case.body: @Test
      public void testWithoutChannel() {
          thingBuilder.withChannels( //
                  ChannelBuilder.create(new ChannelUID(THING_UID, "channel1")).build(), //
                  ChannelBuilder.create(new ChannelUID(THING_UID, "channel2")).build());
          thingBuilder.withoutChannel(new ChannelUID(THING_UID, "channel1"));
          Thing thing = thingBuilder.build();
          assertThat(thing.getChannels(), hasSize(1));
          assertThat(thing.getChannels().get(0).getUID().getId(), is(equalTo("channel2")));
      }
test_case.class_method_signature: ThingBuilderTest.testWithoutChannel()
test_case.full_signature: @Test public void testWithoutChannel()
test_case.identifier: testWithoutChannel
test_case.invocations: withChannels build create build create withoutChannel build assertThat getChannels hasSize assertThat getId getUID get getChannels is equalTo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWithoutChannel()
focal_class.declarator: thingUID
focal_class.modifier: protected final
focal_class.original_string: protected final ThingUID thingUID;
focal_class.type: ThingUID
focal_class.var_name: thingUID
focal_class.declarator: thingTypeUID
focal_class.modifier: protected final
focal_class.original_string: protected final ThingTypeUID thingTypeUID;
focal_class.type: ThingTypeUID
focal_class.var_name: thingTypeUID
focal_class.declarator: label
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable String label;
focal_class.type: String
focal_class.var_name: label
focal_class.declarator: channels = new ArrayList<>()
focal_class.modifier: private final
focal_class.original_string: private final List<Channel> channels = new ArrayList<>();
focal_class.type: List<Channel>
focal_class.var_name: channels
focal_class.declarator: configuration
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable Configuration configuration;
focal_class.type: Configuration
focal_class.var_name: configuration
focal_class.declarator: bridgeUID
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable ThingUID bridgeUID;
focal_class.type: ThingUID
focal_class.var_name: bridgeUID
focal_class.declarator: properties
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable Map<String, String> properties;
focal_class.type: Map<String, String>
focal_class.var_name: properties
focal_class.declarator: location
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable String location;
focal_class.type: String
focal_class.var_name: location
focal_class.file: bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/binding/builder/ThingBuilder.java
focal_class.identifier: ThingBuilder
focal_class.class_method_signature: ThingBuilder.ThingBuilder(ThingTypeUID thingTypeUID, ThingUID thingUID)
focal_class.full_signature: protected  ThingBuilder(ThingTypeUID thingTypeUID, ThingUID thingUID)
focal_class.identifier: ThingBuilder
focal_class.modifiers: protected
focal_class.parameters: (ThingTypeUID thingTypeUID, ThingUID thingUID)
focal_class.signature:  ThingBuilder(ThingTypeUID thingTypeUID, ThingUID thingUID)
focal_class.class_method_signature: ThingBuilder.create(ThingTypeUID thingTypeUID, String thingId)
focal_class.full_signature: public static ThingBuilder create(ThingTypeUID thingTypeUID, String thingId)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (ThingTypeUID thingTypeUID, String thingId)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder create(ThingTypeUID thingTypeUID, String thingId)
focal_class.class_method_signature: ThingBuilder.create(ThingTypeUID thingTypeUID, ThingUID thingUID)
focal_class.full_signature: public static ThingBuilder create(ThingTypeUID thingTypeUID, ThingUID thingUID)
focal_class.identifier: create
focal_class.modifiers: public static
focal_class.parameters: (ThingTypeUID thingTypeUID, ThingUID thingUID)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder create(ThingTypeUID thingTypeUID, ThingUID thingUID)
focal_class.class_method_signature: ThingBuilder.build()
focal_class.full_signature: public Thing build()
focal_class.identifier: build
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Thing
focal_class.signature: Thing build()
focal_class.class_method_signature: ThingBuilder.withLabel(@Nullable String label)
focal_class.full_signature: public ThingBuilder withLabel(@Nullable String label)
focal_class.identifier: withLabel
focal_class.modifiers: public
focal_class.parameters: (@Nullable String label)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withLabel(@Nullable String label)
focal_class.class_method_signature: ThingBuilder.withChannel(Channel channel)
focal_class.full_signature: public ThingBuilder withChannel(Channel channel)
focal_class.identifier: withChannel
focal_class.modifiers: public
focal_class.parameters: (Channel channel)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withChannel(Channel channel)
focal_class.class_method_signature: ThingBuilder.withChannels(Channel... channels)
focal_class.full_signature: public ThingBuilder withChannels(Channel... channels)
focal_class.identifier: withChannels
focal_class.modifiers: public
focal_class.parameters: (Channel... channels)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withChannels(Channel... channels)
focal_class.class_method_signature: ThingBuilder.withChannels(List<Channel> channels)
focal_class.full_signature: public ThingBuilder withChannels(List<Channel> channels)
focal_class.identifier: withChannels
focal_class.modifiers: public
focal_class.parameters: (List<Channel> channels)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withChannels(List<Channel> channels)
focal_class.class_method_signature: ThingBuilder.withoutChannel(ChannelUID channelUID)
focal_class.full_signature: public ThingBuilder withoutChannel(ChannelUID channelUID)
focal_class.identifier: withoutChannel
focal_class.modifiers: public
focal_class.parameters: (ChannelUID channelUID)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withoutChannel(ChannelUID channelUID)
focal_class.class_method_signature: ThingBuilder.withoutChannels(Channel... channels)
focal_class.full_signature: public ThingBuilder withoutChannels(Channel... channels)
focal_class.identifier: withoutChannels
focal_class.modifiers: public
focal_class.parameters: (Channel... channels)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withoutChannels(Channel... channels)
focal_class.class_method_signature: ThingBuilder.withoutChannels(List<Channel> channels)
focal_class.full_signature: public ThingBuilder withoutChannels(List<Channel> channels)
focal_class.identifier: withoutChannels
focal_class.modifiers: public
focal_class.parameters: (List<Channel> channels)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withoutChannels(List<Channel> channels)
focal_class.class_method_signature: ThingBuilder.withConfiguration(Configuration configuration)
focal_class.full_signature: public ThingBuilder withConfiguration(Configuration configuration)
focal_class.identifier: withConfiguration
focal_class.modifiers: public
focal_class.parameters: (Configuration configuration)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withConfiguration(Configuration configuration)
focal_class.class_method_signature: ThingBuilder.withBridge(@Nullable ThingUID bridgeUID)
focal_class.full_signature: public ThingBuilder withBridge(@Nullable ThingUID bridgeUID)
focal_class.identifier: withBridge
focal_class.modifiers: public
focal_class.parameters: (@Nullable ThingUID bridgeUID)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withBridge(@Nullable ThingUID bridgeUID)
focal_class.class_method_signature: ThingBuilder.withProperties(Map<String, String> properties)
focal_class.full_signature: public ThingBuilder withProperties(Map<String, String> properties)
focal_class.identifier: withProperties
focal_class.modifiers: public
focal_class.parameters: (Map<String, String> properties)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withProperties(Map<String, String> properties)
focal_class.class_method_signature: ThingBuilder.withLocation(@Nullable String location)
focal_class.full_signature: public ThingBuilder withLocation(@Nullable String location)
focal_class.identifier: withLocation
focal_class.modifiers: public
focal_class.parameters: (@Nullable String location)
focal_class.return: ThingBuilder
focal_class.signature: ThingBuilder withLocation(@Nullable String location)
focal_class.class_method_signature: ThingBuilder.populate(ThingImpl thing)
focal_class.full_signature: protected Thing populate(ThingImpl thing)
focal_class.identifier: populate
focal_class.modifiers: protected
focal_class.parameters: (ThingImpl thing)
focal_class.return: Thing
focal_class.signature: Thing populate(ThingImpl thing)
focal_class.class_method_signature: ThingBuilder.validateChannelUIDs(List<Channel> channels)
focal_class.full_signature: private void validateChannelUIDs(List<Channel> channels)
focal_class.identifier: validateChannelUIDs
focal_class.modifiers: private
focal_class.parameters: (List<Channel> channels)
focal_class.return: void
focal_class.signature: void validateChannelUIDs(List<Channel> channels)
focal_method.body: public ThingBuilder withoutChannel(ChannelUID channelUID) {
          Iterator<Channel> iterator = channels.iterator();
          while (iterator.hasNext()) {
              if (iterator.next().getUID().equals(channelUID)) {
                  iterator.remove();
                  break;
              }
          }
          return this;
      }
focal_method.class_method_signature: ThingBuilder.withoutChannel(ChannelUID channelUID)
focal_method.full_signature: public ThingBuilder withoutChannel(ChannelUID channelUID)
focal_method.identifier: withoutChannel
focal_method.invocations: iterator hasNext equals getUID next remove
focal_method.modifiers: public
focal_method.parameters: (ChannelUID channelUID)
focal_method.return: ThingBuilder
focal_method.signature: ThingBuilder withoutChannel(ChannelUID channelUID)