public class QuantityValue extends SweQuantity implements ComparableValue<BigDecimal,QuantityValue>
| Constructor and Description |
|---|
QuantityValue()
c
|
QuantityValue(BigDecimal value)
constructor
|
QuantityValue(BigDecimal value,
String unit)
constructor
|
QuantityValue(BigDecimal value,
UoM unit)
constructor
|
QuantityValue(Double value)
constructor
|
QuantityValue(Double value,
String unit)
constructor
|
QuantityValue(Double value,
UoM unit)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
<X,E extends Exception> |
accept(ValueVisitor<X,E> visitor) |
int |
compareTo(QuantityValue o) |
String |
getUnit()
Get the unit of measure
|
UoM |
getUnitObject()
Get the unit of measure object
|
boolean |
isSetUnit()
Check whether the unit of measure is set
|
void |
setUnit(String unit)
Set the unit of measure
|
QuantityValue |
setUnit(UoM unit)
Set the unit of measure object
|
QuantityValue |
setValue(BigDecimal value)
Set value
|
String |
toString() |
accept, accept, copy, equals, getAxisID, getConstraint, getDataComponentType, getStringValue, getValue, getValueAsDouble, hashCode, isSetAxisID, isSetContstraint, isSetValue, setAxisID, setConstraint, setConstraint, setQuality, setStringValue, setUom, setValuecopyValueTo, getUom, getUomObject, isSetUom, setUomcloneQuality, getQuality, isSetQualityaddName, addName, addName, getDefaultElementEncoding, getDefinition, getDescription, getIdentifier, getLabel, getName, getNames, getXml, isSetDefinition, isSetDescription, isSetIdentifier, isSetLabel, isSetName, isSetNames, isSetXml, setDefaultElementEncoding, setDefinition, setDescription, setIdentifier, setLabel, setName, setName, setName, setXmlclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValue, isSetValueisSetDefaultElementEncodingpublic QuantityValue()
public QuantityValue(BigDecimal value)
value - Measurement valuepublic QuantityValue(BigDecimal value, String unit)
value - Measurement valueunit - Unit of measurepublic QuantityValue(BigDecimal value, UoM unit)
value - Measurement valueunit - Unit of measurepublic QuantityValue(Double value)
value - Measurement valuepublic QuantityValue(Double value, String unit)
value - Measurement valueunit - Unit of measurepublic QuantityValue setValue(BigDecimal value)
ValuesetValue in interface Value<BigDecimal,SweAbstractSimpleType<BigDecimal>>setValue in class SweQuantityvalue - value to setpublic void setUnit(String unit)
Valueunit - Unit of measurepublic QuantityValue setUnit(UoM unit)
Valueunit - Unit of measurepublic String getUnit()
Valuepublic UoM getUnitObject()
Valuepublic boolean isSetUnit()
Valuetrue, if unit of measure is setpublic String toString()
toString in class SweAbstractUomType<BigDecimal>public <X,E extends Exception> X accept(ValueVisitor<X,E> visitor) throws E extends Exception
E extends Exceptionpublic int compareTo(QuantityValue o)
compareTo in interface Comparable<QuantityValue>Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.