Interface NumericType<T>

All Superinterfaces:
Comparable<T>
All Known Implementing Classes:
DecimalValue, FloatValue, IntegerValue, Rational

public interface NumericType<T> extends Comparable<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    abs()
     
    add(T other)
     
    div(T other)
     
    mul(T other)
     
     
    sub(T other)
     

    Methods inherited from interface Comparable

    compareTo
  • Method Details

    • add

      T add(T other)
    • sub

      T sub(T other)
    • mul

      T mul(T other)
    • div

      T div(T other)
    • abs

      T abs()
    • sqrt

      T sqrt()