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

net.finmath.information.Library Maven / Gradle / Ivy

Go to download

finmath lib is a Mathematical Finance Library in Java. It provides algorithms and methodologies related to mathematical finance.

There is a newer version: 6.0.19
Show newest version
/*
 * (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