public class JacksonInnerQuantity extends Object
JacksonValue.JSON_VALUE_TYPE_QUANTITY.| Constructor and Description |
|---|
JacksonInnerQuantity()
Constructor.
|
JacksonInnerQuantity(BigDecimal amount,
BigDecimal upperBound,
BigDecimal lowerBound)
TODO Review the utility of this constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
BigDecimal |
getAmount()
Returns the numeric value.
|
String |
getAmountAsString() |
BigDecimal |
getLowerBound()
Returns the lower bound.
|
String |
getLowerBoundAsString() |
String |
getUnit()
Returns the string to use for the "unit" field in JSON.
|
BigDecimal |
getUpperBound()
Returns the upper bound.
|
String |
getUpperBoundAsString() |
void |
setAmount(BigDecimal amount)
Sets the numerical value to the given value.
|
void |
setLowerBound(BigDecimal lowerBound)
Sets the lower bound to the given value.
|
void |
setUpperBound(BigDecimal upperBound)
Sets the upper bound to the given value.
|
public JacksonInnerQuantity()
public JacksonInnerQuantity(BigDecimal amount, BigDecimal upperBound, BigDecimal lowerBound)
amount - upperBound - lowerBound - public BigDecimal getAmount()
QuantityValue.getNumericValue()public void setAmount(BigDecimal amount)
amount - new valuepublic BigDecimal getUpperBound()
QuantityValue.getUpperBound()public void setUpperBound(BigDecimal upperBound)
upperBound - new valuepublic BigDecimal getLowerBound()
QuantityValue.getLowerBound()public void setLowerBound(BigDecimal lowerBound)
lower - bound new valuepublic String getAmountAsString()
public String getUpperBoundAsString()
public String getLowerBoundAsString()
public String getUnit()
Copyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage