public class JacksonValueQuantity extends JacksonValue implements QuantityValue
QuantityValue.JSON_VALUE_TYPE_ENTITY_ID, JSON_VALUE_TYPE_GLOBE_COORDINATES, JSON_VALUE_TYPE_MONOLINGUAL_TEXT, JSON_VALUE_TYPE_QUANTITY, JSON_VALUE_TYPE_STRING, JSON_VALUE_TYPE_TIME| Constructor and Description |
|---|
JacksonValueQuantity()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor)
Accept a ValueVisitor and return its output.
|
boolean |
equals(Object obj) |
BigDecimal |
getLowerBound()
Get the upper bound for the numeric value of this quantity.
|
BigDecimal |
getNumericValue()
Get the main numeric value of this quantity.
|
BigDecimal |
getUpperBound()
Get the upper bound for the numeric value of this quantity.
|
JacksonInnerQuantity |
getValue()
Returns the inner value helper object.
|
int |
hashCode() |
void |
setValue(JacksonInnerQuantity value)
Sets the inner value helper object to the given value.
|
String |
toString() |
getType, setTypepublic JacksonValueQuantity()
public void setValue(JacksonInnerQuantity value)
value - new valuepublic JacksonInnerQuantity getValue()
public BigDecimal getNumericValue()
QuantityValuegetNumericValue in interface QuantityValuepublic BigDecimal getLowerBound()
QuantityValuegetLowerBound in interface QuantityValuepublic BigDecimal getUpperBound()
QuantityValuegetUpperBound in interface QuantityValuepublic <T> T accept(ValueVisitor<T> valueVisitor)
ValueCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage