Interface ThrowableLongPredicate

  • All Superinterfaces:
    java.util.function.LongPredicate
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ThrowableLongPredicate
    extends java.util.function.LongPredicate
    Represents a predicate (boolean-valued function) of one long-valued argument. This is the long-consuming primitive type specialization of ThrowablePredicate.

    Permits checked exceptions unlike LongPredicate

    This is a functional interface whose functional method is test(long).

    See Also:
    ThrowablePredicate
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default boolean test​(long value)
      Evaluates this predicate on the given argument.
      boolean testUnsafe​(long value)
      Evaluates this predicate on the given argument.
      • Methods inherited from interface java.util.function.LongPredicate

        and, negate, or
    • Method Detail

      • testUnsafe

        boolean testUnsafe​(long value)
                    throws java.lang.Throwable
        Evaluates this predicate on the given argument.
        Parameters:
        value - the input argument
        Returns:
        true if the input argument matches the predicate, otherwise false
        Throws:
        java.lang.Throwable - occurred during processing
      • test

        default boolean test​(long value)
        Evaluates this predicate on the given argument.
        Specified by:
        test in interface java.util.function.LongPredicate
        Parameters:
        value - the input argument
        Returns:
        true if the input argument matches the predicate, otherwise false