public class DecimalDetails extends AbstractPathDetailsBuilder
| Constructor and Description |
|---|
DecimalDetails(String name,
DecimalEncodedValue ev) |
DecimalDetails(String name,
DecimalEncodedValue ev,
String infinityJsonValue,
double precision) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getCurrentValue()
The value of the Path at this moment, that should be stored in the PathDetail when calling startInterval
|
boolean |
isEdgeDifferentToLastEdge(EdgeIteratorState edge) |
build, endInterval, getName, startInterval, toStringpublic DecimalDetails(String name, DecimalEncodedValue ev)
public DecimalDetails(String name, DecimalEncodedValue ev, String infinityJsonValue, double precision)
infinityJsonValue - DecimalEncodedValue can return infinity as default value, but JSON cannot include this
https://stackoverflow.com/a/9218955/194609 so we need a special string to handle this or null.precision - e.g. 0.1 to avoid creating too many path details, i.e. round the speed to the specified precision
* before detecting a change.protected Object getCurrentValue()
AbstractPathDetailsBuildergetCurrentValue in class AbstractPathDetailsBuilderpublic boolean isEdgeDifferentToLastEdge(EdgeIteratorState edge)
Copyright © 2012–2020. All rights reserved.