reset password
Author Message
ummata
Posts: 68
Posted 14:10 May 12, 2014 |

Class Stream has forall function which tests if boolean function satisfied by all elements.
What if it finds an unsatisfied on one element, it will stop iterating or keep doing until all element applied?
Stream should stop evaluating even it finds only one unsatisfied element. 

rabbott
Posts: 1649
Posted 15:07 May 12, 2014 |

I assume it stops if it ever finds an element that doesn't satisfy the predicate.