com.annimon.stream.function.ThrowableLongPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stream Show documentation
Show all versions of stream Show documentation
Stream API from Java 8 rewritten on iterators for Java 7 and below
package com.annimon.stream.function;
/**
* Represents a {@code long}-valued predicate (function with boolean type result).
*
* @param the type of the exception
* @since 1.1.7
* @see LongPredicate
*/
public interface ThrowableLongPredicate {
/**
* Tests the value for satisfying predicate.
*
* @param value the value to be tested
* @return {@code true} if the value matches the predicate, otherwise {@code false}
* @throws E an exception
*/
boolean test(long value) throws E;
}