Compare

com.phasmidsoftware.comparer.Compare
object Compare

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Compare.type

Members list

Value members

Concrete methods

def apply[T : Comparer](t1: T, t2: T): Comparison

Method to construct a Comparison from two objects of type T (tupled form). The sense of the result of this comparison is the same as, for example, Double.compare(t1, t2).

Method to construct a Comparison from two objects of type T (tupled form). The sense of the result of this comparison is the same as, for example, Double.compare(t1, t2).

Type parameters

T

the type of both t1 and t2, such type providing a given Comparer[T].

Value parameters

t1

the first T.

t2

the second T.

Attributes

Returns

a Comparison, resulting from applying the comparer to the tuple of t1 and t2.