test_class.declarator: DEFAULT_TTL = 60
test_class.modifier: private static final
test_class.original_string: private static final int DEFAULT_TTL = 60;
test_class.type: int
test_class.var_name: DEFAULT_TTL
test_class.file: bundles/org.openhab.core.config.discovery/src/test/java/org/openhab/core/config/discovery/internal/DiscoveryResultImplTest.java
test_class.identifier: DiscoveryResultImplTest
test_case.body: @Test
      public void testThingTypeCompatibility() {
          ThingTypeUID thingTypeUID = new ThingTypeUID("bindingId", "thingType");
          DiscoveryResultImpl discoveryResult = new DiscoveryResultImpl(null, new ThingUID(thingTypeUID, "thingId"), null,
                  null, "nothing", "label", DEFAULT_TTL);
          assertNotNull(discoveryResult.getThingTypeUID());
          assertEquals(discoveryResult.getThingTypeUID(), thingTypeUID);
      }
test_case.class_method_signature: DiscoveryResultImplTest.testThingTypeCompatibility()
test_case.full_signature: @Test public void testThingTypeCompatibility()
test_case.identifier: testThingTypeCompatibility
test_case.invocations: assertNotNull getThingTypeUID assertEquals getThingTypeUID
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testThingTypeCompatibility()
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: thingUID
focal_class.modifier: private @NonNullByDefault({})
focal_class.original_string: private @NonNullByDefault({}) ThingUID thingUID;
focal_class.type: ThingUID
focal_class.var_name: thingUID
focal_class.declarator: thingTypeUID
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable ThingTypeUID thingTypeUID;
focal_class.type: ThingTypeUID
focal_class.var_name: thingTypeUID
focal_class.declarator: properties = Collections.emptyMap()
focal_class.modifier: private
focal_class.original_string: private Map<String, Object> properties = Collections.emptyMap();
focal_class.type: Map<String, Object>
focal_class.var_name: properties
focal_class.declarator: representationProperty
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable String representationProperty;
focal_class.type: String
focal_class.var_name: representationProperty
focal_class.declarator: flag
focal_class.modifier: private @NonNullByDefault({})
focal_class.original_string: private @NonNullByDefault({}) DiscoveryResultFlag flag;
focal_class.type: DiscoveryResultFlag
focal_class.var_name: flag
focal_class.declarator: label
focal_class.modifier: private @NonNullByDefault({})
focal_class.original_string: private @NonNullByDefault({}) String label;
focal_class.type: String
focal_class.var_name: label
focal_class.declarator: timestamp
focal_class.modifier: private
focal_class.original_string: private long timestamp;
focal_class.type: long
focal_class.var_name: timestamp
focal_class.declarator: timeToLive = TTL_UNLIMITED
focal_class.modifier: private
focal_class.original_string: private long timeToLive = TTL_UNLIMITED;
focal_class.type: long
focal_class.var_name: timeToLive
focal_class.file: bundles/org.openhab.core.config.discovery/src/main/java/org/openhab/core/config/discovery/internal/DiscoveryResultImpl.java
focal_class.identifier: DiscoveryResultImpl
focal_class.interfaces: implements DiscoveryResult
focal_class.class_method_signature: DiscoveryResultImpl.DiscoveryResultImpl()
focal_class.full_signature:   DiscoveryResultImpl()
focal_class.identifier: DiscoveryResultImpl
focal_class.parameters: ()
focal_class.signature:  DiscoveryResultImpl()
focal_class.class_method_signature: DiscoveryResultImpl.DiscoveryResultImpl(@Nullable ThingTypeUID thingTypeUID, ThingUID thingUID, @Nullable ThingUID bridgeUID,
              @Nullable Map<String, Object> properties, @Nullable String representationProperty, @Nullable String label,
              long timeToLive)
focal_class.full_signature: @Deprecated public  DiscoveryResultImpl(@Nullable ThingTypeUID thingTypeUID, ThingUID thingUID, @Nullable ThingUID bridgeUID,
              @Nullable Map<String, Object> properties, @Nullable String representationProperty, @Nullable String label,
              long timeToLive)
focal_class.identifier: DiscoveryResultImpl
focal_class.modifiers: @Deprecated public
focal_class.parameters: (@Nullable ThingTypeUID thingTypeUID, ThingUID thingUID, @Nullable ThingUID bridgeUID,
              @Nullable Map<String, Object> properties, @Nullable String representationProperty, @Nullable String label,
              long timeToLive)
focal_class.signature:  DiscoveryResultImpl(@Nullable ThingTypeUID thingTypeUID, ThingUID thingUID, @Nullable ThingUID bridgeUID,
              @Nullable Map<String, Object> properties, @Nullable String representationProperty, @Nullable String label,
              long timeToLive)
focal_class.class_method_signature: DiscoveryResultImpl.getThingUID()
focal_class.full_signature: @Override public ThingUID getThingUID()
focal_class.identifier: getThingUID
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ThingUID
focal_class.signature: ThingUID getThingUID()
focal_class.class_method_signature: DiscoveryResultImpl.getThingTypeUID()
focal_class.full_signature: @Override public ThingTypeUID getThingTypeUID()
focal_class.identifier: getThingTypeUID
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ThingTypeUID
focal_class.signature: ThingTypeUID getThingTypeUID()
focal_class.class_method_signature: DiscoveryResultImpl.getBindingId()
focal_class.full_signature: @Override public String getBindingId()
focal_class.identifier: getBindingId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getBindingId()
focal_class.class_method_signature: DiscoveryResultImpl.getProperties()
focal_class.full_signature: @Override public Map<String, Object> getProperties()
focal_class.identifier: getProperties
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> getProperties()
focal_class.class_method_signature: DiscoveryResultImpl.getRepresentationProperty()
focal_class.full_signature: @Override public @Nullable String getRepresentationProperty()
focal_class.identifier: getRepresentationProperty
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRepresentationProperty()
focal_class.class_method_signature: DiscoveryResultImpl.getFlag()
focal_class.full_signature: @Override public DiscoveryResultFlag getFlag()
focal_class.identifier: getFlag
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: DiscoveryResultFlag
focal_class.signature: DiscoveryResultFlag getFlag()
focal_class.class_method_signature: DiscoveryResultImpl.getLabel()
focal_class.full_signature: @Override public String getLabel()
focal_class.identifier: getLabel
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLabel()
focal_class.class_method_signature: DiscoveryResultImpl.getBridgeUID()
focal_class.full_signature: @Override public @Nullable ThingUID getBridgeUID()
focal_class.identifier: getBridgeUID
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: ()
focal_class.return: ThingUID
focal_class.signature: ThingUID getBridgeUID()
focal_class.class_method_signature: DiscoveryResultImpl.synchronize(@Nullable DiscoveryResult sourceResult)
focal_class.full_signature: public void synchronize(@Nullable DiscoveryResult sourceResult)
focal_class.identifier: synchronize
focal_class.modifiers: public
focal_class.parameters: (@Nullable DiscoveryResult sourceResult)
focal_class.return: void
focal_class.signature: void synchronize(@Nullable DiscoveryResult sourceResult)
focal_class.class_method_signature: DiscoveryResultImpl.setFlag(@Nullable DiscoveryResultFlag flag)
focal_class.full_signature: public void setFlag(@Nullable DiscoveryResultFlag flag)
focal_class.identifier: setFlag
focal_class.modifiers: public
focal_class.parameters: (@Nullable DiscoveryResultFlag flag)
focal_class.return: void
focal_class.signature: void setFlag(@Nullable DiscoveryResultFlag flag)
focal_class.class_method_signature: DiscoveryResultImpl.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: DiscoveryResultImpl.equals(@Nullable Object obj)
focal_class.full_signature: @Override public boolean equals(@Nullable Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(@Nullable Object obj)
focal_class.class_method_signature: DiscoveryResultImpl.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: DiscoveryResultImpl.getTimestamp()
focal_class.full_signature: @Override public long getTimestamp()
focal_class.identifier: getTimestamp
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getTimestamp()
focal_class.class_method_signature: DiscoveryResultImpl.getTimeToLive()
focal_class.full_signature: @Override public long getTimeToLive()
focal_class.identifier: getTimeToLive
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getTimeToLive()
focal_method.body: @Override
      public ThingTypeUID getThingTypeUID() {
          ThingTypeUID localThingTypeUID = thingTypeUID;
          if (localThingTypeUID != null) {
              return localThingTypeUID;
          } else {
              // fallback for discovery result which were created before the thingTypeUID field was added
              String[] segments = thingUID.getAsString().split(AbstractUID.SEPARATOR);
              if (!segments[1].isEmpty()) {
                  return new ThingTypeUID(thingUID.getBindingId(), segments[1]);
              }
              throw new IllegalArgumentException("ThingTypeUID of thing '" + thingUID.getAsString() + "' is null.");
          }
      }
focal_method.class_method_signature: DiscoveryResultImpl.getThingTypeUID()
focal_method.full_signature: @Override public ThingTypeUID getThingTypeUID()
focal_method.identifier: getThingTypeUID
focal_method.invocations: split getAsString isEmpty getBindingId getAsString
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: ThingTypeUID
focal_method.signature: ThingTypeUID getThingTypeUID()