public static final class PrimitiveValue.Builder extends 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(Boolean booleanValue)
Boolean value of the constant.
|
PrimitiveValue.Builder |
setDoubleValue(Double doubleValue)
Double value of the constant.
|
PrimitiveValue.Builder |
setLongValue(Long longValue)
Long value of the constant.
|
PrimitiveValue.Builder |
setStringValue(String stringValue)
String value of the constant.
|
public PrimitiveValue.Builder(PrimitiveValue.Type type)
PrimitiveValue
.public PrimitiveValue.Builder setBooleanValue(Boolean booleanValue)
getType()
is PrimitiveValue.Type.BOOLEAN
.booleanValue
- New value for the property.public PrimitiveValue.Builder setDoubleValue(Double doubleValue)
getType()
is PrimitiveValue.Type.DOUBLE
.doubleValue
- New value for the property.public PrimitiveValue.Builder setLongValue(Long longValue)
getType()
is PrimitiveValue.Type.LONG
.longValue
- New value for the property.public PrimitiveValue.Builder setStringValue(String stringValue)
getType()
is PrimitiveValue.Type.STRING
.stringValue
- New value for the property.public PrimitiveValue build()
Copyright © 2016. All Rights Reserved.