java.lang.Object | |
↳ | com.carto.core.VariantArrayBuilder |
A helper class for building variant arrays.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VariantArrayBuilder()
A default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
addBool(boolean val)
Adds a new boolean to the array as the last element.
| ||||||||||
void |
addDouble(double val)
Adds a new double floating point value to the array as the last element.
| ||||||||||
void |
addLong(long val)
Adds a new long integer to the array as the last element.
| ||||||||||
void |
addString(String str)
Adds a new string to the array as the last element.
| ||||||||||
void |
addVariant(Variant var)
Adds a new variant to the array as the last element.
| ||||||||||
Variant |
buildVariant()
Builds a new array variant from the added elements.
| ||||||||||
void |
clear()
Clears the array.
| ||||||||||
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.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
A default constructor.
Adds a new boolean to the array as the last element.
val | The boolean to add. |
---|
Adds a new double floating point value to the array as the last element.
val | The floating point value to add. |
---|
Adds a new long integer to the array as the last element.
val | The integer to add. |
---|
Adds a new string to the array as the last element.
str | The string to add. |
---|
Adds a new variant to the array as the last element.
var | The variant to add. |
---|
Builds a new array variant from the added elements.
Clears the array.
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the hash value of this object.