Interface PriceAdjustmentStrategy<T>
-
- All Known Implementing Classes:
DefaultPriceAdjustmentStrategy
- 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 PriceAdjustmentStrategy<T>
Strategy to perform price adjustment of an order entry, taking into consideration provided quantity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigDecimal
get(T entry, int quantity)
Performs calculation of the adjusted price for the provided entry with respect to quantity value
-
-
-
Method Detail
-
get
java.math.BigDecimal get(T entry, int quantity)
Performs calculation of the adjusted price for the provided entry with respect to quantity value- Parameters:
entry
- an entry to perform price correction on, e.g.OrderEntryRAO
quantity
- quantity value to be used in price correction related calculations- Returns:
- adjusted price value
-
-