All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tsl2.nano.core.IPredicate Maven / Gradle / Ivy

Go to download

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy