ScopedOrd

mill.idea.GenIdeaImpl.ScopedOrd
final case class ScopedOrd[T <: Comparable[T]](value: T, scope: Option[String]) extends Ordered[ScopedOrd[T]]

Attributes

Source
GenIdeaImpl.scala
Graph
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
trait Ordered[ScopedOrd[T]]
trait Comparable[ScopedOrd[T]]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def compare(that: ScopedOrd[T]): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Implement this method to determine how instances of A will be sorted.

Returns x where:

  • x &lt; 0 when this &lt; that

  • x == 0 when this == that

  • x > 0 when this > that

Value parameters

that

the instance to compare against

Attributes

Returns

an integer whose sign indicates the ordering relation between this and that

Definition Classes
Ordered
Source
GenIdeaImpl.scala

Inherited methods

def <(that: ScopedOrd[T]): Boolean

Returns true if this is less than that

Returns true if this is less than that

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
Source
Ordered.scala
def <=(that: ScopedOrd[T]): Boolean

Returns true if this is less than or equal to that.

Returns true if this is less than or equal to that.

Attributes

Inherited from:
Ordered
Source
Ordered.scala
def >(that: ScopedOrd[T]): Boolean

Returns true if this is greater than that.

Returns true if this is greater than that.

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
Source
Ordered.scala
def >=(that: ScopedOrd[T]): Boolean

Returns true if this is greater than or equal to that.

Returns true if this is greater than or equal to that.

Attributes

Inherited from:
Ordered
Source
Ordered.scala
def compareTo(that: ScopedOrd[T]): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
Source
Ordered.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala