de.tsl2.nano.core.IPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.core Show documentation
Show all versions of tsl2.nano.core Show documentation
TSL2 Framework Core (Main-Loader, Environment, Logging, Classloading, Crypting, PKI, HttpClient, ManagedException, Progress, System-Execution, CPU/Profiling, Compatibility-Layer, Messaging, Updater)
The newest version!
/*
* File: $HeadURL$
* Id : $Id$
*
* created by: Thomas Schneider
* created on: Jun 25, 2013
*
* Copyright: (c) Thomas Schneider 2013, all rights reserved
*/
package de.tsl2.nano.core;
@FunctionalInterface
/**
* evaluates a true or false for a given object - useful for filtering.
*
* @author Thomas Schneider
* @version $Revision$
*/
public interface IPredicate {
public boolean eval(T arg0);
public static final IPredicate ANY = new IPredicate() {
@Override
public boolean eval(Object arg0) {
return true;
}
};
}