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.
@FunctionalInterface public interface NumberedLineItemLookupStrategyFunctional interface that provides line item lookup capabilities
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NumberedLineItemlookup(Order cart, OrderEntryRAO entryRao)Returns the correspondingNumberedLineItemfor the givenentryRao.
-
-
-
Method Detail
-
lookup
NumberedLineItem lookup(Order cart, OrderEntryRAO entryRao)
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:
java.lang.IllegalArgumentException- if no corresponding NumberedLineItem can be found
-
-