org.hammerlab.math

PartiallyOrdered

trait PartiallyOrdered[+A] extends Any

Fork of scala.math.PartiallyOrdered trait that inherits Any, making it a universal trait suitable for inheritance by value-classes. See https://issues.scala-lang.org/browse/SI-10128.

A class for partially ordered data.

Forked from the Scala standard-lib in order to make it a universal trait, for mixing-in to value-classes.

Version

1.0, 23/04/2004

Linear Supertypes
Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PartiallyOrdered
  2. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getClass(): Class[_]

    Definition Classes
    Any
  2. abstract def tryCompareTo[B >: A](that: B)(implicit arg0: PartiallyOrdered[B]): Option[Int]

    Result of comparing this with operand that.

    Result of comparing this with operand that. Returns None if operands are not comparable. If operands are comparable, returns Some(x) where

    • x < 0 iff this < that
    • x == 0 iff this == that
    • x > 0 iff this > that

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. def <[B >: A](that: B)(implicit arg0: PartiallyOrdered[B]): Boolean

  4. def <=[B >: A](that: B)(implicit arg0: PartiallyOrdered[B]): Boolean

  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def >[B >: A](that: B)(implicit arg0: PartiallyOrdered[B]): Boolean

  7. def >=[B >: A](that: B)(implicit arg0: PartiallyOrdered[B]): Boolean

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def equals(arg0: Any): Boolean

    Definition Classes
    Any
  10. def hashCode(): Int

    Definition Classes
    Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. def toString(): String

    Definition Classes
    Any

Inherited from Any

Ungrouped