beaker.common.util.PartialOrder.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beaker-common_2.12 Show documentation
Show all versions of beaker-common_2.12 Show documentation
Reinventing database transactions
The newest version!
package beaker.common.util
import scala.language.implicitConversions
/**
* A partial ordering. Orders are anti-symmetric (x <| y -> y |> x).
*/
trait PartialOrder[-T] {
/**
* Returns whether or not x is partially ordered before y if x and y are comparable.
*
* @param x An element.
* @param y Another element.
* @return Whether or not x is before y.
*/
def before(x: T, y: T): Option[Boolean]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy