Interface Predicate<M,​P>

  • Type Parameters:
    M - The type of input values matched by this predicate.
    P - The type of the additional parameter to this predicate's matches method. Use Void for predicates that do not need an additional parameter.
    All Known Implementing Classes:
    BackendConfigManager.NamingContextFilter

    public interface Predicate<M,​P>
    Predicates transform input values of type M to a boolean output value and are typically used for performing filtering.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean matches​(M value, P p)
      Indicates whether this predicate matches the provided input value of type M.
    • Method Detail

      • matches

        boolean matches​(M value,
                        P p)
        Indicates whether this predicate matches the provided input value of type M.
        Parameters:
        value - The input value for which to make the determination.
        p - A predicate specified parameter.
        Returns:
        true if this predicate matches value, otherwise false.