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

net.sf.staccatocommons.defs.Executable2 Maven / Gradle / Ivy

Go to download

Minimal definitions library that provides very abstract interfaces with well defined but generic semantics, focused on code reuse.

The newest version!
/**
 *  Copyright (c) 2010-2012, The StaccatoCommons Team
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation; version 3 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 */

package net.sf.staccatocommons.defs;

/**
 * {@link Executable2}s are computations that take two arguments and whose
 * result is a side effect, instead of a return value.
 * 

* {@link Executable2} has the same semantics that an {@link Applicable2} of * {@link Void} return type, but is provided for ease of coding. Concrete * implementors should implement {@link Applicable2} as well. *

* * @author flbulgarelli * * @param * first computation argument type * @param * second computation argument type * @see Applicative Recomendations for implementing */ @Applicative public interface Executable2 { /** * Performs a side-effect computation. * * @see Executable#exec(Object) * @param arg0 * @param arg1 */ void exec(A arg0, B arg1); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy