Interface QuoteExpirationTimeValidationStrategy

    • Method Detail

      • hasQuoteExpired

        boolean hasQuoteExpired​(QuoteModel quoteModel)
        This method determines whether the supplied QuoteModel has Expired or not. Criteria used to determine whether the Quote has expired is listed below,

        1) QuoteModel.expirationTime >= current time (current SystemTime)

        Disclaimer : Uses TimeService to determine Current Time.
        Parameters:
        quoteModel - the quote to inspect
        Returns:
        true if the quote is expired, false otherwise
        Throws:
        java.lang.IllegalArgumentException - if the quote model is null