in scala
trait PartiallyOrdered

trait PartiallyOrdered[+a]()
extends Object
with ScalaObject

A trait for partially ordered data.
Author:
Martin Odersky
Version:
1.0, 23/04/2004

Method Summary
  def <[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Boolean
  def <=[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Boolean
  def >[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Boolean
  def >=[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Boolean
abstract def tryCompareTo[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Option[Int]
     Result of comparing `this' with operand `that'.

Methods inherited from java/lang/Object-class
clone, eq, equals, finalize, getClass, hashCode, ne, notify, notifyAll, synchronized, toString, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/ScalaObject-class
getScalaType

Method Detail

tryCompareTo

  abstract def tryCompareTo[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Option[Int]
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

<

  def <[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Boolean

>

  def >[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Boolean

<=

  def <=[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Boolean

>=

  def >=[b >: a](view: (b) => PartiallyOrdered[b])(that: b): Boolean