Class TimeExpression


  • public final class TimeExpression
    extends Object
    The Class TimeExpression.
    • Constructor Detail

      • TimeExpression

        private TimeExpression()
        Prevent Instantiation.
    • Method Detail

      • dataPoints

        public static long dataPoints​(String periodExpression,
                                      String spanExpression)
        Data points.
        Parameters:
        periodExpression - the period expression
        spanExpression - the span expression
        Returns:
        the long
      • dataPoints

        public static long dataPoints​(long period,
                                      long span)
        Data points.
        Parameters:
        period - the period
        span - the span
        Returns:
        the long
      • cronExpression

        public static String cronExpression​(String periodExpression,
                                            String phaseExpression)
        Cron expression.
        Parameters:
        periodExpression - the period expression
        phaseExpression - the phase expression
        Returns:
        the string
      • cronExpression

        public static String cronExpression​(long period,
                                            long phase)
        Cron expression.
        Parameters:
        period - the period
        phase - the phase
        Returns:
        the string
      • cronSubexpression

        private static String cronSubexpression​(long period,
                                                long phase)
        Cron subexpression.
        Parameters:
        period - the period
        phase - the phase
        Returns:
        the string
      • inSeconds

        public static long inSeconds​(String expression)
        In seconds.
        Parameters:
        expression - the expression
        Returns:
        the long
      • multiplier

        private static int multiplier​(char unit)
        Multiplier.
        Parameters:
        unit - the unit
        Returns:
        the int