Interface CharPredicate

  • 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 CharPredicate
    Represents a char-specialization of Predicate.
    • Method Detail

      • and

        default CharPredicate and​(CharPredicate other)
        Compose the current predicate and the given predicate using the logical AND operator.
        Parameters:
        other - the other predicate.
        Returns:
        The composed predicate.
      • or

        default CharPredicate or​(CharPredicate other)
        Compose the current predicate and the given predicate using the logical OR operator.
        Parameters:
        other - the other predicate.
        Returns:
        The composed predicate.
      • negate

        default CharPredicate negate()
        Returns a predicate that represents the logical negation of this predicate.
        Returns:
        The logical negation of this predicate.
      • test

        boolean test​(char value)
        Evaluate this predicate on the given argument-
        Parameters:
        value - the argument.
        Returns:
        TRUE if the input matches the predicate, FALSE otherwise.