Scala Library
|
|
scala/Enumeration.scala
]
protected
class
Val(i : Int, name : java.lang.String)
extends
ValueValue
type. This class can be
overriden to change the enumeration's naming and integer identification
behaviour.Additional Constructor Summary | |
def
|
this (i : Int) : Val |
def
|
this : Val |
def
|
this (name : java.lang.String) : Val |
Method Summary | |
def
|
id
: Int
the id and bit location of this enumeration value
|
override def
|
toString
: java.lang.String
Returns a string representation of the object.
|
Methods inherited from Value | |
compare, equals, hashCode, mask32, mask64 |
Methods inherited from Ordered | |
<, >, <=, >=, compareTo |
Methods inherited from AnyRef | |
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Additional Constructor Details |
Method Details |
def
id : Int
override
def
toString : java.lang.String
The default representation is platform dependent.
Scala Library
|
|