net.finmath.plots.Named Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib-plot-extensions Show documentation
Show all versions of finmath-lib-plot-extensions Show documentation
finmath lib plot extensions provide convenient
plotting methods by providing consistent wrappers
to plot libraries (like JFreeChart or JavaFX).
The newest version!
/*
* (c) Copyright Christian P. Fries, Germany. Contact: [email protected].
*
* Created on 24 May 2018
*/
package net.finmath.plots;
/**
* A named object of type T.
*
* @author Christian Fries
* @param The type of the named object.
*/
public class Named {
private final String name;
private final T object;
/**
* Create the named object.
*
* @param name Name of the object.
* @param object The object.
*/
public Named(final String name, final T object) {
super();
this.name = name;
this.object = object;
}
/**
* Get the name of the object.
*
* @return the name
*/
public String getName() {
return name;
}
/**
* Get the object.
*
* @return the object.
*/
public T get() {
return object;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy