Package org.salespointframework.order
Interface Totalable<T extends org.salespointframework.order.Priced>
-
public interface Totalable<T extends org.salespointframework.order.Priced> extends org.springframework.data.util.Streamable<T>An extension ofStreamableofPricedobjects that expose agetTotal()method so that the combined price can be calculated easily.- Since:
- 7.1
- Author:
- Oliver Gierke*
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Totalable<T>and(Iterable<? extends T> priced)Creates a newTotalablewith the given one added to the current one.javax.money.MonetaryAmountgetTotal()Returns the total of all thePricedelements contained in thisTotalable.static <T extends org.salespointframework.order.Priced>
Totalable<T>of(Iterable<T> priced)-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-