Interface Strings.CharacterPredicate

Enclosing class:
Strings
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 static interface Strings.CharacterPredicate
Represents a predicate (boolean-valued function) of one character argument.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(char c)
    Evaluates this predicate on the given character argument.
  • Method Details

    • test

      boolean test(char c)
      Evaluates this predicate on the given character argument.
      Parameters:
      c - the input argument
      Returns:
      true if the input argument matches the predicate, or false otherwise