net.sf.staccatocommons.defs.Evaluable2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of staccatissimo-defs Show documentation
Show all versions of staccatissimo-defs Show documentation
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 Evaluable2}s are boolean conditions over two argument that can be
* tested using its {@link #eval(Object, Object)} message.
*
* {@link Evaluable} has the same semantics that an {@link Applicable2} of
* {@link Boolean} return type, but is provided for ease of coding. Concrete
* implementors should implement {@link Applicable2} as well.
*
*
* @author flbulgarelli
*
* @param
* the type of the first argument
* @param
* the type of the second argument
*
* @see Applicative Recomendations for implementing
* @see Evaluable
*/
@Applicative
public interface Evaluable2 {
/**
* Evaluates two argument. If the arguments evaluates to true they are said to
* satisfy or meet this condition.
*
* @param arg0
* the first argument
* @param arg1
* the second argument
*
* @return if the arguments meet this evaluable condition
*/
boolean eval(A arg0, B arg1);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy