net.finmath.information.Library Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib Show documentation
Show all versions of finmath-lib Show documentation
finmath lib is a Mathematical Finance Library in Java.
It provides algorithms and methodologies related to mathematical finance.
/*
* (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: [email protected].
*
* Created on 18.08.2014
*/
package net.finmath.information;
import java.util.Properties;
/**
* Provides information on the finmath-lib library, e.g., the version.
*
* @author Christian Fries
*/
public class Library {
private static Properties properties = null;
private Library() { }
private static Properties getProperites() {
if(properties == null) {
properties = new Properties();
try {
properties.load(Library.class.getResourceAsStream("/finmath-lib.properties"));
} catch (Exception e) {
properties = null;
}
}
return properties;
}
/**
* Return the version string of this instance of finmath-lib.
*
* @return The version string of this instance of finmath-lib.
*/
public static String getVersionString() {
String versionString = getProperites().getProperty("finmath-lib.version");
if(versionString == null) versionString = "UNKNOWN";
return versionString;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy