default boolean forAll(final Predicate<? super T> predicate) {
		boolean valid = true;

		for (int i = 0, n = length(); i < n && valid; ++i) {
			valid = predicate.test(get(i));
		}

		return valid;
	}
Tests whether a predicate holds for all elements of this sequence.

@param predicate the predicate to use to test the elements.
@return {@code true} if the given predicate p holds for all elements of
        this sequence, {@code false} otherwise.
@throws NullPointerException if the given {@code predicate} is
        {@code null}.
jenetics/src/main/java/io/jenetics/util/Seq.java