public class Property extends Object
Constructor and Description |
---|
Property(String name,
String type,
Object min,
Object max,
String value)
Creates a Property object with a specified minimum and maximum value that it can have.
|
Property(String name,
String type,
String value)
Creates a Property object with
name as the identifier, and the
value . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
getMax()
Get the maximum value associated with this Property, which is immutable.
|
Optional<Object> |
getMin()
Get the minimum value associated with this Property, which is immutable.
|
String |
getName()
Get the name of the Property, which is immutable.
|
String |
getType()
Get the class type of the Property.
|
String |
getValue()
Get the value of this Property.
|
int |
hashCode() |
void |
setValue(String value)
Set the value of the Property.
|
String |
toString() |
public Property(String name, String type, String value)
name
as the identifier, and the
value
.
For example, name: deviceInformation value: android things
name
- Property name.type
- Property type.value
- Property value.public Property(String name, String type, Object min, Object max, String value)
name
- Property name.type
- The type of the property.min
- Minimum value that the property can have.max
- Maximum value that the property can have.value
- Property Valuepublic String getName()
public String getType()
public Optional<Object> getMin()
public Object getMax()
public String getValue()
This call by itself will not result in a call to the underlying network.
public void setValue(String value)
This call by itself will not result in a call to the underlying network.
value
- The value to set.Copyright © 2019. All rights reserved.