public interface Totalable<T extends org.salespointframework.order.Priced>
extends org.springframework.data.util.Streamable<T>
Streamable
of Priced
objects that expose a getTotal()
method so that the
combined price can be calculated easily.Modifier and Type | Method and Description |
---|---|
default Totalable<T> |
and(Iterable<? extends T> priced)
Creates a new
Totalable with the given one added to the current one. |
javax.money.MonetaryAmount |
getTotal()
Returns the total of all the
Priced elements contained in this Totalable . |
static <T extends org.salespointframework.order.Priced> |
of(Iterable<T> priced)
|
and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, stream, toList, toSet
forEach, iterator, spliterator
static <T extends org.salespointframework.order.Priced> Totalable<T> of(Iterable<T> priced)
of
in interface org.springframework.data.util.Streamable<T extends org.salespointframework.order.Priced>
priced
- must not be null.javax.money.MonetaryAmount getTotal()
Priced
elements contained in this Totalable
.Copyright © 2019. All rights reserved.