/** * OtherOperators class */ package onetomany.etc; /** * This package is devoted to several operators, e.g., a few mathematical or so, such as max, min, etc. * * * @author Faria Nassiri-Mofakham * */ public class OtherOperators { public long min(long op1, long op2) { if (op1>=op2) return op2; else return op1; } public int min(int op1, int op2) { if (op1>=op2) return op2; else return op1; } public double min(double op1, double op2) { if (op1>=op2) return op2; else return op1; } public long max(long op1, long op2) { if (op1>=op2) return op1; else return op2; } public int max(int op1, int op2) { if (op1>=op2) return op1; else return op2; } public double max(double op1, double op2) { if (op1>=op2) return op1; else return op2; } }