Class ProfileDataItem<T>
- java.lang.Object
-
- org.n52.io.response.dataset.profile.ProfileDataItem<T>
-
- All Implemented Interfaces:
Comparable<ProfileDataItem<T>>
- Direct Known Subclasses:
TrajectoryProfileDataItem
public class ProfileDataItem<T> extends Object implements Comparable<ProfileDataItem<T>>
-
-
Constructor Summary
Constructors Constructor Description ProfileDataItem()ProfileDataItem(BigDecimal verticalFrom, BigDecimal verticalTo, T value)ProfileDataItem(BigDecimal vertical, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ProfileDataItem<T> o)booleanequals(Object obj)DetectionLimitOutputgetDetectionLimit()StringgetFormattedValue()Formats value as string by usingvalueFormatter.TgetValue()BigDecimalgetVertical()BigDecimalgetVerticalFrom()BigDecimalgetVerticalTo()inthashCode()protected booleanisSetVerticalFrom()voidsetDetectionLimit(DetectionLimitOutput detectionLimit)voidsetValue(T value)voidsetValueFormatter(ValueFormatter<T> valueFormatter)voidsetVertical(BigDecimal vertical)voidsetVerticalFrom(BigDecimal verticalFrom)
-
-
-
Constructor Detail
-
ProfileDataItem
public ProfileDataItem()
-
ProfileDataItem
public ProfileDataItem(BigDecimal vertical, T value)
-
ProfileDataItem
public ProfileDataItem(BigDecimal verticalFrom, BigDecimal verticalTo, T value)
-
-
Method Detail
-
getVerticalFrom
public BigDecimal getVerticalFrom()
-
setVerticalFrom
public void setVerticalFrom(BigDecimal verticalFrom)
-
isSetVerticalFrom
protected boolean isSetVerticalFrom()
-
getVerticalTo
public BigDecimal getVerticalTo()
-
getVertical
public BigDecimal getVertical()
-
setVertical
public void setVertical(BigDecimal vertical)
-
getValue
public T getValue()
-
setValue
public void setValue(T value)
-
setValueFormatter
public void setValueFormatter(ValueFormatter<T> valueFormatter)
-
getFormattedValue
public String getFormattedValue()
Formats value as string by usingvalueFormatter. If no formatter has been setObject.toString()is being used. Otherwisenullis returned.- Returns:
- the
valueformatted as string ornullif value isnull
-
getDetectionLimit
public DetectionLimitOutput getDetectionLimit()
-
setDetectionLimit
public void setDetectionLimit(DetectionLimitOutput detectionLimit)
-
compareTo
public int compareTo(ProfileDataItem<T> o)
- Specified by:
compareToin interfaceComparable<T>
-
-