Packages

object Byte extends AnyValCompanion

Source
Byte.scala
Linear Supertypes
AnyValCompanion, Specializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Byte
  2. AnyValCompanion
  3. Specializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final val MaxValue: Byte(127)

    The largest value representable as a Byte.

  2. final val MinValue: Byte(-128)

    The smallest value representable as a Byte.

  3. def box(x: Byte): java.lang.Byte

    Transform a value type into a boxed reference type.

    Transform a value type into a boxed reference type.

    Runtime implementation determined by scala.runtime.BoxesRunTime.boxToByte. See src/library/scala/runtime/BoxesRunTime.java.

    x

    the Byte to be boxed

    returns

    a java.lang.Byte offering x as its underlying value.

  4. implicit def byte2double(x: Byte): Double
  5. implicit def byte2float(x: Byte): Float
  6. implicit def byte2int(x: Byte): Int
  7. implicit def byte2long(x: Byte): Long
  8. implicit def byte2short(x: Byte): Short
  9. def toString(): String

    The String representation of the scala.Byte companion object.

    The String representation of the scala.Byte companion object.

    returns

    a String representation of the object.

    Definition Classes
    Byte → AnyRef → Any
  10. def unbox(x: AnyRef): Byte

    Transform a boxed type into a value type.

    Transform a boxed type into a value type. Note that this method is not typesafe: it accepts any Object, but will throw an exception if the argument is not a java.lang.Byte.

    Runtime implementation determined by scala.runtime.BoxesRunTime.unboxToByte. See src/library/scala/runtime/BoxesRunTime.java.

    x

    the java.lang.Byte to be unboxed.

    returns

    the Byte resulting from calling byteValue() on x

    Exceptions thrown

    ClassCastException if the argument is not a java.lang.Byte