Comparison
case LessThan
case EqualTo
case GreaterThan
Definitions
def fromInt32(i: Int32): Comparison
SourceConverts an integer to a Comparison
value.
The return value is:
LessThan
if i < 0
.
EqualTo
if i == 0
.
GreaterThan
if i > 0
.
def toInt32(c: Comparison): Int32
SourceConverts a Comparison
value to an integer.
The return value is:
-1
if c
is LessThan
.
0
if c
is EqualTo
.
+1
if c
is GreaterThan
.