25 lines
601 B
Java
25 lines
601 B
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package com.wentch.redkale.util;
|
|
|
|
/**
|
|
* JDK 8 java.util.function.Predicate
|
|
*
|
|
* @author zhangjx
|
|
* @param <T>
|
|
*/
|
|
public interface Predicate<T> {
|
|
|
|
/**
|
|
* Evaluates this predicate on the given argument.
|
|
*
|
|
* @param t the input argument
|
|
* @return {@code true} if the input argument matches the predicate,
|
|
* otherwise {@code false}
|
|
*/
|
|
boolean test(T t);
|
|
}
|