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 ofStreamable
ofPriced
objects 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 newTotalable
with the given one added to the current one.javax.money.MonetaryAmount
getTotal()
Returns the total of all thePriced
elements 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
-
-