java.io.Serializable, QuantityValue, Valuepublic class QuantityValueImpl extends java.lang.Object implements QuantityValue, java.io.Serializable
QuantityValue.| 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.
|
int |
hashCode() |
|
java.lang.String |
toString() |
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