Interface NumberedLineItemLookupStrategy
- All Known Implementing Classes:
DefaultNumberedLineItemLookupStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface that provides line item lookup capabilities
-
Method Summary
Modifier and TypeMethodDescriptionlookup(Order cart, OrderEntryRAO entryRao) Returns the correspondingNumberedLineItemfor the givenentryRao.
-
Method Details
-
lookup
Returns the correspondingNumberedLineItemfor the givenentryRao. The lookup is based on both having the sameentryNumber.- Parameters:
cart- the cart to look up the line item fromentryRao- the entry rao- Returns:
- the corresponding NumberedLineItem
- Throws:
IllegalArgumentException- if no corresponding NumberedLineItem can be found
-