public static final class PrimitiveValue.Builder
extends java.lang.Object
PrimitiveValue
.Constructor and Description |
---|
PrimitiveValue.Builder(PrimitiveValue.Type type)
Constructor with parameters for the required properties of
PrimitiveValue . |
Modifier and Type | Method and Description |
---|---|
PrimitiveValue |
build() |
PrimitiveValue.Builder |
setBooleanValue(java.lang.Boolean booleanValue)
Boolean value of the constant.
|
PrimitiveValue.Builder |
setDoubleValue(java.lang.Double doubleValue)
Double value of the constant.
|
PrimitiveValue.Builder |
setLongValue(java.lang.Long longValue)
Long value of the constant.
|
PrimitiveValue.Builder |
setStringValue(java.lang.String stringValue)
String value of the constant.
|
public PrimitiveValue.Builder(PrimitiveValue.Type type)
PrimitiveValue
.public PrimitiveValue.Builder setBooleanValue(java.lang.Boolean booleanValue)
getType()
is PrimitiveValue.Type.BOOLEAN
.booleanValue
- New value for the property.public PrimitiveValue.Builder setDoubleValue(java.lang.Double doubleValue)
getType()
is PrimitiveValue.Type.DOUBLE
.doubleValue
- New value for the property.public PrimitiveValue.Builder setLongValue(java.lang.Long longValue)
getType()
is PrimitiveValue.Type.LONG
.longValue
- New value for the property.public PrimitiveValue.Builder setStringValue(java.lang.String stringValue)
getType()
is PrimitiveValue.Type.STRING
.stringValue
- New value for the property.public PrimitiveValue build()