public class ThingAttribute
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a thing attribute.
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
attributes
The attributes.
|
private java.lang.String |
thingName
The name of the thing.
|
Constructor and Description |
---|
ThingAttribute() |
Modifier and Type | Method and Description |
---|---|
ThingAttribute |
addAttributesEntry(java.lang.String key,
java.lang.String value) |
ThingAttribute |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
ThingAttribute |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
The attributes.
|
java.lang.String |
getThingName()
The name of the thing.
|
int |
hashCode() |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The attributes.
|
void |
setThingName(java.lang.String thingName)
The name of the thing.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ThingAttribute |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The attributes.
|
ThingAttribute |
withThingName(java.lang.String thingName)
The name of the thing.
|
private java.lang.String thingName
The name of the thing.
private java.util.Map<java.lang.String,java.lang.String> attributes
The attributes.
public void setThingName(java.lang.String thingName)
The name of the thing.
thingName
- The name of the thing.public java.lang.String getThingName()
The name of the thing.
public ThingAttribute withThingName(java.lang.String thingName)
The name of the thing.
thingName
- The name of the thing.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
The attributes.
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The attributes.
attributes
- The attributes.public ThingAttribute withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The attributes.
attributes
- The attributes.public ThingAttribute addAttributesEntry(java.lang.String key, java.lang.String value)
public ThingAttribute clearAttributesEntries()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ThingAttribute clone()
clone
in class java.lang.Object