Class Amount
java.lang.Object
com.sportradar.mbs.sdk.entities.common.Amount
Represents an amount with a currency value.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class for creating instances of the Amount class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the currency value of the amount.getValue()
Gets the numeric value of the amount.static Amount.Builder
Returns a new instance of the Amount.Builder class.void
setCurrency
(String value) Sets the currency value of the amount.void
setValue
(BigDecimal value) Sets the numeric value of the amount.
-
Constructor Details
-
Amount
public Amount()
-
-
Method Details
-
newBuilder
Returns a new instance of the Amount.Builder class.- Returns:
- a new instance of the Amount.Builder class
-
getCurrency
Gets the currency value of the amount.- Returns:
- the currency value
-
setCurrency
Sets the currency value of the amount.- Parameters:
value
- the currency value to set
-
getValue
Gets the numeric value of the amount.- Returns:
- the numeric value
-
setValue
Sets the numeric value of the amount.- Parameters:
value
- the numeric value to set
-