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

net.joala.condition.ConditionFactory Maven / Gradle / Ivy

/*
 * Copyright 2012 CoreMedia AG
 *
 * This file is part of Joala.
 *
 * Joala is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Joala 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Joala.  If not, see .
 */

package net.joala.condition;

import net.joala.expression.Expression;

import javax.annotation.Nonnull;

/**
 * 

* Interface for factories providing conditions. *

* * @since 8/22/12 */ public interface ConditionFactory { /** *

* Create a boolean condition which allows some convenience methods for assertions and assumptions. *

* * @param expression the expression which will evaluate to a boolean value * @return boolean condition * @throws NullPointerException if expression is null */ @Nonnull BooleanCondition booleanCondition(@Nonnull Expression expression); /** *

* Create a ready to use condition. *

* * @param expression the expression which will evaluate to value of type T * @param the type the expression value will have * @return condition * @throws NullPointerException if expression is null */ @Nonnull Condition condition(@Nonnull Expression expression); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy