MCPcopy Create free account
hub / github.com/apache/storm / isEvery

Method isEvery

storm-server/src/main/java/org/apache/storm/Testing.java:118–120  ·  view source on GitHub ↗

Convenience method for data.stream.allMatch(pred).

(Collection<T> data, Predicate<T> pred)

Source from the content-addressed store, hash-verified

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.

Callers 1

completeTopologyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected