Interface QuoteExpirationTimeValidationStrategy
- All Known Implementing Classes:
DefaultQuoteExpirationTimeValidationStrategy
public interface QuoteExpirationTimeValidationStrategy
Strategy To Validate Quote Expiration Time
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasQuoteExpired(QuoteModel quoteModel) This method determines whether the supplied QuoteModel has Expired or not.
-
Method Details
-
hasQuoteExpired
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 : UsesTimeServiceto 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
-