Class DateDetectionAdaptableIntervalFactory


  • public class DateDetectionAdaptableIntervalFactory
    extends Object
    Factory for adaptable interval tuned for date(s) detection.
    Since:
    13.0
    Author:
    Romain Serra
    See Also:
    DateDetector, FieldDateDetector
    • Field Detail

      • DEFAULT_MAX_CHECK

        public static final double DEFAULT_MAX_CHECK
        Default value for max check.
        See Also:
        Constant Field Values
    • Method Detail

      • getSingleDateDetectionAdaptableInterval

        public static AdaptableInterval getSingleDateDetectionAdaptableInterval()
        Return a candidate AdaptableInterval for single date detection.
        Returns:
        adaptable interval
      • getDatesDetectionConstantInterval

        public static AdaptableInterval getDatesDetectionConstantInterval​(TimeStamped... timeStampeds)
        Return a candidate AdaptableInterval for multiple dates detection with a constant max. check.
        Parameters:
        timeStampeds - event dates
        Returns:
        adaptable interval
      • getDatesDetectionInterval

        public static AdaptableInterval getDatesDetectionInterval​(TimeStamped... timeStampeds)
        Return a candidate AdaptableInterval for multiple dates detection.
        Parameters:
        timeStampeds - event dates
        Returns:
        adaptable interval
      • getMinGap

        public static double getMinGap​(TimeStamped... timeStampeds)
        Compute min. gap between dated objects if applicable. It ignores duplicates.
        Parameters:
        timeStampeds - time stamped objects
        Returns:
        minimum gap