public class NumericValue extends MeasuredValue implements Formatable
Constructor and Description |
---|
NumericValue() |
Modifier and Type | Method and Description |
---|---|
String |
format(Object o)
formats an object along a certain pattern into a String
|
Double |
parse(String s)
converts a String with the help of a certain pattern
into a user-defined object
|
void |
setPattern(String formatPattern)
set the pattern to be used by format(String s);
|
String |
toString() |
getDateAndTime, getFeatureOfInterest, getObservedProperty, getSensor, getSensorFor, getTableElement, getUnitOfMeasurement, setDateAndTime, setFeatureOfInterest, setObservedProperty, setSensor, setTableElement, setUnitOfMeasurement
public Double parse(String s)
Parseable
public String format(Object o)
Formatable
format
in interface Formatable
o
- the object to formatpublic String toString()
toString
in class MeasuredValue
public void setPattern(String formatPattern)
Formatable
setPattern
in interface Formatable
setPattern
in interface Parseable
Copyright © 2011–2019 52°North. All rights reserved.