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 < 0 when this < that

  • x == 0 when this == that

  • x > 0 when this > that

Attributes

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

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.

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.

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