Fix code example showing Streamable usage.

Closes #2391
This commit is contained in:
Yanming Zhou
2021-06-24 16:37:00 +08:00
committed by Mark Paluch
parent b0e6a1476e
commit d4e7205cd5

View File

@@ -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()