Class DecimalDetails

All Implemented Interfaces:
PathDetailsBuilder

public class DecimalDetails extends AbstractPathDetailsBuilder
  • Constructor Details

    • DecimalDetails

      public DecimalDetails(String name, DecimalEncodedValue ev)
    • DecimalDetails

      public DecimalDetails(String name, DecimalEncodedValue ev, String infinityJsonValue, double precision)
      Parameters:
      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.
  • Method Details