Class ZestExpressionResponseTime

    • Constructor Detail

      • ZestExpressionResponseTime

        public ZestExpressionResponseTime()
        Instantiates a new zest expression response time.
      • ZestExpressionResponseTime

        public ZestExpressionResponseTime​(long time)
        Instantiates a new zest expression response time.
        Parameters:
        time - the time
      • ZestExpressionResponseTime

        public ZestExpressionResponseTime​(long time,
                                          boolean greaterThan)
        Constructs a ZestExpressionResponseTime with the given time and whether the response should be greater than the given time.
        Parameters:
        time - the time in milliseconds.
        greaterThan - if the response time should be greater than the given time.
        Since:
        0.14.0
      • ZestExpressionResponseTime

        public ZestExpressionResponseTime​(long time,
                                          boolean greaterThan,
                                          boolean inverse)
        Constructs a ZestExpressionResponseTime with the given time, whether the response should be greater than the given time, and with the given inverse state.
        Parameters:
        time - the time in milliseconds.
        greaterThan - if the response time should be greater than the given time.
        inverse - if the expression should be the inverse.
        Since:
        0.14.0
    • Method Detail

      • isTrue

        public boolean isTrue​(ZestRuntime runtime)
        Description copied from interface: ZestExpressionElement
        the boolean value result of the expression without inverse flag.
        Parameters:
        runtime - the runtime
        Returns:
        the boolean value of the expression without inverse flag
      • isGreaterThan

        public boolean isGreaterThan()
        Checks if is greater than.
        Returns:
        true, if is greater than
      • setGreaterThan

        public void setGreaterThan​(boolean greaterThan)
        Sets the greater than.
        Parameters:
        greaterThan - the new greater than
      • getTimeInMs

        public long getTimeInMs()
        Gets the time in ms.
        Returns:
        the time in ms
      • setTimeInMs

        public void setTimeInMs​(long timeInMs)
        Sets the time in ms.
        Parameters:
        timeInMs - the new time in ms