Interface QuoteExpirationTimeValidationStrategy
-
- All Known Implementing Classes:
DefaultQuoteExpirationTimeValidationStrategy
public interface QuoteExpirationTimeValidationStrategyStrategy To Validate Quote Expiration Time
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasQuoteExpired(QuoteModel quoteModel)This method determines whether the supplied QuoteModel has Expired or not.
-
-
-
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 : UsesTimeServiceto 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
-
-