package org.jquantlib.math;
/**
* This is an interim interface which will be replaced in future by an interface of same name from JSR-166y-extra
*
* @see Op
* @author Richard Gomes
*/
public interface Ops {
/**
* This is an interim method which will be replaced in future by a method of same name from JSR-166y-extra
*
* @see Op
* @author Richard Gomes
*/
public interface Op {
public R op(A a);
}
/**
* This is an interim method which will be replaced in future by a method of same name from JSR-166y-extra
*
* @see DoubleOp
* @author Richard Gomes
*/
public interface DoubleOp {
public double op(double x);
//TODO: boolean isFailed() // TODO is error handling needed?
}
/**
* This is an interim method which will be replaced in future by a method of same name from JSR-166y-extra
*
* @see BinaryDoubleOp
* @author Richard Gomes
*/
public interface BinaryDoubleOp {
public double op(double x, double y);
//FIXME: boolean isFailed() TODO error handling
}
/**
* This is an interim method which will be replaced in future by a method of same name from JSR-166y-extra
*
* @see IntToDouble
* @author Richard Gomes
*/
//TODO : consider http://gee.cs.oswego.edu/dl/jsr166/dist/extra166ydocs/extra166y/Ops.BinaryDoubleOp.html
public interface IntToDouble {
public double op(int x);
//FIXME: boolean isFailed() // TODO is error handling needed?
}
/**
* This is an interim method which will be replaced in future by a method of same name from JSR-166y-extra
*
* @see ObjectToDouble
* @author Richard Gomes
*/
public interface ObjectToDouble {
public double op(A a);
}
/**
* This is an interim method which will be replaced in future by a method of same name from JSR-166y-extra
*
* @see DoublePredicate
* @author Richard Gomes
*/
public static interface DoublePredicate {
public boolean op(double a);
}
/**
* This is an interim method which will be replaced in future by a method of same name from JSR-166y-extra
*
* @see BinaryDoublePredicate
* @author Richard Gomes
*/
public static interface BinaryDoublePredicate {
public boolean op(double a, double b);
}
/**
* This is an interim method which will be replaced in future by a method of same name from JSR-166y-extra
*
* @see DoubleGenerator
* @author Zahid Hussain.
*/
public static interface DoubleGenerator {
public double op();
}
}
Ads help maintain this website.