committed by
Mark Paluch
parent
b0e6a1476e
commit
d4e7205cd5
@@ -647,10 +647,10 @@ class Product { <1>
|
||||
MonetaryAmount getPrice() { … }
|
||||
}
|
||||
|
||||
@RequiredArgConstructor(staticName = "of")
|
||||
@RequiredArgsConstructor(staticName = "of")
|
||||
class Products implements Streamable<Product> { <2>
|
||||
|
||||
private Streamable<Product> streamable;
|
||||
private final Streamable<Product> streamable;
|
||||
|
||||
public MonetaryAmount getTotal() { <3>
|
||||
return streamable.stream()
|
||||
|
||||
Reference in New Issue
Block a user