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 NumberedLineItemLookupStrategy
    Functional interface that provides line item lookup capabilities
    • Method Detail

      • lookup

        NumberedLineItem lookup​(Order cart,
                                OrderEntryRAO entryRao)
        Returns the corresponding NumberedLineItem for the given entryRao. The lookup is based on both having the same entryNumber.
        Parameters:
        cart - the cart to look up the line item from
        entryRao - the entry rao
        Returns:
        the corresponding NumberedLineItem
        Throws:
        java.lang.IllegalArgumentException - if no corresponding NumberedLineItem can be found