Scala Library Documentation
|
|
scala/Enumeration.scala
]
abstract
class
Value
extends
Ordered[Value]Method Summary | |
override def
|
compare
(that : Value) : Int
Result of comparing
this with operand that .
returns x where
x < 0 iff this < that
x == 0 iff this == that
x > 0 iff this > that |
abstract def
|
id
: Int
the id and bit location of this enumeration value
|
def
|
mask32
: Int
this enumeration value as an
Int bit mask. |
def
|
mask64
: Long
this enumeration value as an
Long bit mask. |
Methods inherited from Ordered | |
<, >, <=, >=, compareTo |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
abstract
def
id : Int
this
with operand that
.
returns x
where
x < 0
iff this < that
x == 0
iff this == that
x > 0
iff this > that
def
mask32 : Int
Int
bit mask.IllegalArgumentException -
if id
is greater than 31
def
mask64 : Long
Long
bit mask.IllegalArgumentException -
if id
is greater than 63
Scala Library Documentation
|
|