Package org.openhab.core.thing
Class ThingStatusInfo
java.lang.Object
org.openhab.core.thing.ThingStatusInfo
A 
ThingStatusInfo represents status information of a thing which consists of
 - the status itself
- detail of the status
- and a description of the status
- Author:
- Stefan Bußweiler - Initial contribution, Dennis Nobel - Added null checks
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefault constructor for deserialization e.g. by Gson.ThingStatusInfo(ThingStatus status, ThingStatusDetail statusDetail, @Nullable String description) Constructs a status info.
- 
Method Summary
- 
Constructor Details- 
ThingStatusInfoprotected ThingStatusInfo()Default constructor for deserialization e.g. by Gson.
- 
ThingStatusInfopublic ThingStatusInfo(ThingStatus status, ThingStatusDetail statusDetail, @Nullable String description) Constructs a status info.- Parameters:
- status- the status (must not be null)
- statusDetail- the detail of the status (must not be null)
- description- the description of the status
 
 
- 
- 
Method Details- 
getStatusGets the status itself.- Returns:
- the status (not null)
 
- 
getStatusDetailGets the detail of the status.- Returns:
- the status detail (not null)
 
- 
getDescriptionGets the description of the status.- Returns:
- the description
 
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
 
-