Back to project page android-plotter.
The source code is released under:
Apache License
If you think the Android project android-plotter 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 org.solovyev.android.plotter; //w w w. j a v a2 s . c o m import javax.annotation.Nonnull; public abstract class Function0 extends Function { @Nonnull public static final Function0 ZERO = new Function0("0") { @Override public float evaluate() { return 0; } }; protected Function0() { } protected Function0(@Nonnull String name) { super(name); } @Override public final int getArity() { return 0; } @Override public final float evaluate(float x) { throw new UnsupportedOperationException(); } @Override public final float evaluate(float x, float y) { throw new UnsupportedOperationException(); } }