Interface Matcher<T>

Type Parameters:
T - 匹配的对象类型
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 Matcher<T>
匹配接口
Author:
Looly
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    match(T t)
    给定对象是否匹配
  • Method Details

    • match

      boolean match(T t)
      给定对象是否匹配
      Parameters:
      t - 对象
      Returns:
      是否匹配