com.quantarray.anaheim.finance.MoneynessOrder.scala Maven / Gradle / Ivy
The newest version!
package com.quantarray.anaheim.finance
import spire.algebra.Order
/**
* Moneyness order, per spire.algebra.Order.
*
* @author Araik Grigoryan
*/
trait MoneynessOrder {
implicit object MoneynessOrder extends Order[Moneyness] {
override def compare(x: Moneyness, y: Moneyness): Int = x.compareTo(y)
}
}
object MoneynessOrder extends MoneynessOrder