Interface QuoteExpirationTimeValidationStrategy

All Known Implementing Classes:
DefaultQuoteExpirationTimeValidationStrategy

public interface QuoteExpirationTimeValidationStrategy
Strategy To Validate Quote Expiration Time
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method determines whether the supplied QuoteModel has Expired or not.
  • Method Details

    • 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:
      IllegalArgumentException - if the quote model is null