| java.lang.Object | |
| ↳ | com.carto.core.VariantObjectBuilder |
A helper class for building variant objects.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
VariantObjectBuilder()
A default constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Variant |
buildVariant()
Builds a new object variant from the added elements.
| ||||||||||
| void |
clear()
Clears the object.
| ||||||||||
| synchronized void | delete() | ||||||||||
| boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
| int |
hashCode()
Returns the hash value of this object.
| ||||||||||
| void |
setBool(String key, boolean val)
Sets a specified boolean value.
| ||||||||||
| void |
setDouble(String key, double val)
Sets a specified double precision floating point value.
| ||||||||||
| void |
setLong(String key, long val)
Sets a specified long integer value.
| ||||||||||
| void |
setString(String key, String str)
Sets a specified string value.
| ||||||||||
| void |
setVariant(String key, Variant var)
Sets a specified variant value.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
A default constructor.
Builds a new object variant from the added elements.
Clears the object.
Checks if this object is equal to the specified object.
| obj | The reference object. |
|---|
Returns the hash value of this object.
Sets a specified boolean value.
| key | The key to set. |
|---|---|
| val | The boolean value. |
Sets a specified double precision floating point value.
| key | The key to set. |
|---|---|
| val | The floating point value. |
Sets a specified long integer value.
| key | The key to set. |
|---|---|
| val | The integer value. |
Sets a specified string value.
| key | The key to set. |
|---|---|
| str | The string value. |
Sets a specified variant value.
| key | The key to set. |
|---|---|
| var | The variant to add. |