Class TokenAmount.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class TokenAmount.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for TokenAmount instances.
-
-
Field Summary
Fields Modifier and Type Field Description public int
scale
public ByteBuffer
unscaledValue
-
Method Summary
Modifier and Type Method Description int
getScale()
Gets the value of the 'scale' field. TokenAmount.Builder
setScale(int value)
Sets the value of the 'scale' field. ByteBuffer
getUnscaledValue()
Gets the value of the 'unscaledValue' field. TokenAmount.Builder
setUnscaledValue(ByteBuffer value)
Sets the value of the 'unscaledValue' field. boolean
hasScale()
Checks whether the 'scale' field has been set. TokenAmount.Builder
clearScale()
Clears the value of the 'scale' field. boolean
hasUnscaledValue()
Checks whether the 'unscaledValue' field has been set. TokenAmount.Builder
clearUnscaledValue()
Clears the value of the 'unscaledValue' field. TokenAmount
build()
-
-
Method Detail
-
getScale
int getScale()
Gets the value of the 'scale' field. The scale of the token amount
-
setScale
TokenAmount.Builder setScale(int value)
Sets the value of the 'scale' field. The scale of the token amount
- Parameters:
value
- The value of 'scale'.
-
getUnscaledValue
ByteBuffer getUnscaledValue()
Gets the value of the 'unscaledValue' field. The unscaled token amount
-
setUnscaledValue
TokenAmount.Builder setUnscaledValue(ByteBuffer value)
Sets the value of the 'unscaledValue' field. The unscaled token amount
- Parameters:
value
- The value of 'unscaledValue'.
-
hasScale
boolean hasScale()
Checks whether the 'scale' field has been set. The scale of the token amount
-
clearScale
TokenAmount.Builder clearScale()
Clears the value of the 'scale' field. The scale of the token amount
-
hasUnscaledValue
boolean hasUnscaledValue()
Checks whether the 'unscaledValue' field has been set. The unscaled token amount
-
clearUnscaledValue
TokenAmount.Builder clearUnscaledValue()
Clears the value of the 'unscaledValue' field. The unscaled token amount
-
build
TokenAmount build()
-
-
-
-