Convenience method for data.stream.allMatch(pred).
(Collection<T> data, Predicate<T> pred)
| 116 | * Convenience method for data.stream.allMatch(pred). |
| 117 | */ |
| 118 | public static <T> boolean isEvery(Collection<T> data, Predicate<T> pred) { |
| 119 | return data.stream().allMatch(pred); |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Run with simulated time. |