Files
redkale/com/wentch/redkale/util/Predicate.java
地平线 ac6a2e57c6
2015-09-22 17:34:27 +08:00

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);
}