scala.Enumeration
class Value

[source: `scala/Enumeration.scala`]

`abstract` `class` Value
  `extends` Ordered[Value]

  The type of the enumerated values.

Direct Known Subclasses:
  Enumeration.Val

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

  the id and bit location of this enumeration value

`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`

Overrides
  Ordered.compare

`` `def` mask32 : Int

  this enumeration value as an `Int` bit mask.

Throws
  `IllegalArgumentException -` if `id` is greater than 31

`` `def` mask64 : Long

  this enumeration value as an `Long` bit mask.

Throws
  `IllegalArgumentException -` if `id` is greater than 63