org.faktorips.runtime.IVersionChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of faktorips-runtime Show documentation
Show all versions of faktorips-runtime Show documentation
Runtime library for Faktor-IPS.
When using the JAXB support use either faktorips-runtime-jakarta-xml or faktorips-runtime-javax-xml as dependency.
When using CSV to read tables, add the optional dependencies to opencsv, commons-lang3 and commons-text.
If you want to run Faktor-IPS tests as JUnit tests, you need to provide either junit (JUnit 4) or junit-jupiter-api (JUnit 5).
/*******************************************************************************
* Copyright (c) Faktor Zehn GmbH - faktorzehn.org
*
* This source code is available under the terms of the AGPL Affero General Public License version
* 3.
*
* Please see LICENSE.txt for full license terms, including the additional permissions and
* restrictions as well as the possibility of alternative license terms.
*******************************************************************************/
package org.faktorips.runtime;
/**
* The modification checker holds a version or time stamp for the version or time it is up to date.
* You could ask the modification checker whether a given version or time stamp is expired and you
* could get the actual version.
*
* @author dirmeier
*/
@FunctionalInterface
public interface IVersionChecker {
/**
* A strict version checker that requires an exact match of the full version strings.
*/
public static final IVersionChecker STRICT = String::equals;
/**
* Returns true if the new version is compatible to the old version or both versions are equal
*
* @param oldVersion the old version
* @param newVersion the new version
* @return true if versions are compatible
*/
public boolean isCompatibleVersion(String oldVersion, String newVersion);
}