All Downloads are FREE. Search and download functionalities are using the official Maven repository.

beaker.common.util.PartialOrder.scala Maven / Gradle / Ivy

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