class
Hexadecimal extends AnyRef
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(that: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
repr: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toBinary: List[Boolean]
-
def
toInt: Int
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Hexadecimal number value
This provides a type safe way to manipulate hexadecimal number. The main constructor is private, but the companion object provides a number of way to produce an Hexadecimal representation, from a string or from any integer type.
An hexadecimal number value really depends on the context in which it is considered. It can always be interpreted as an unsigned, infinite precision integer, or as a negative number in two-complement. A value like 'F' could either be 16 or -1, depending if it is interpreted as an unsigned value on an integral type of more than 4 bits, or if it is sign extended in the corresponding integral representation. You should consider the Hexadecimal as a concise syntax to represent a sequence of bytes, with convenient methods to convert to and from integers, and not as an actual number.