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

org.valkyriercp.rules.closure.Closure Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package org.valkyriercp.rules.closure;

/**
 * A function object that evaluates one argument, executing a block of code. It
 * returns a single result.
 * 

* A closure evaluates a single argument against some expression. For example, a * "StringLength" closure might accept any object and return the length of the * object's string form. * * @author Keith Donald */ public interface Closure { /** * Evaluate the function with the provided argument, returning the result. * * @param argument the argument * @return the function return value */ Object call(Object argument); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy