Back to project page graph-android.
The source code is released under:
GNU General Public License
If you think the Android project graph-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package lorian.graph.function; //from w w w . ja va 2s. c o m public class Variable { private final char varchar; private double value; public Variable(char varchar, double value) { this.varchar = ("" + varchar).toUpperCase().charAt(0); if(this.varchar < 'A'|| this.varchar > 'Z') { varchar = '?'; value = 0; } else this.value = value; } public char getVarChar() { return varchar; } public void setValue(double newval) { this.value = newval; } public double getValue() { return value; } }