com.cogpunk.math.NumberOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cogpunk-math Show documentation
Show all versions of cogpunk-math Show documentation
A set of mathematical utilities
package com.cogpunk.math;
public interface NumberOperator {
public P add(P first, P second);
public P subtract(P first, P second);
public P multiply(P first, P second) ;
public P divide(P first, P second);
public P cast(Number i);
public int hashCode();
/**
* @param obj The object to compare with
* @return There this is an equivalent NumberOperator
*/
public boolean equals(Object obj);
}