QuantityValue, Valuepublic 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 | Description |
|---|---|
JacksonValueQuantity() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor) |
Accept a ValueVisitor and return its output.
|
boolean |
equals(java.lang.Object obj) |
|
java.math.BigDecimal |
getLowerBound() |
Returns the upper bound for the numeric value of this quantity.
|
java.math.BigDecimal |
getNumericValue() |
Returns the main numeric value of this quantity.
|
java.lang.String |
getUnit() |
Returns the unit of this quantity, or an empty string if there is no
unit.
|
java.math.BigDecimal |
getUpperBound() |
Returns 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.
|
java.lang.String |
toString() |
getType, setTypepublic JacksonValueQuantity()
public void setValue(JacksonInnerQuantity value)
value - new valuepublic JacksonInnerQuantity getValue()
public java.math.BigDecimal getNumericValue()
QuantityValuegetNumericValue in interface QuantityValuepublic java.math.BigDecimal getLowerBound()
QuantityValuegetLowerBound in interface QuantityValuepublic java.math.BigDecimal getUpperBound()
QuantityValuegetUpperBound in interface QuantityValuepublic java.lang.String getUnit()
QuantityValuegetUnit in interface QuantityValuepublic <T> T accept(ValueVisitor<T> valueVisitor)
Valuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage