Packages

object Short extends AnyValCompanion

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

Value Members

  1. final val MaxValue: Short(32767)

    The largest value representable as a Short.

  2. final val MinValue: Short(-32768)

    The smallest value representable as a Short.

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

    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.boxToShort. See src/library/scala/runtime/BoxesRunTime.java.

    x

    the Short to be boxed

    returns

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

  4. implicit def short2double(x: Short): Double
  5. implicit def short2float(x: Short): Float
  6. implicit def short2int(x: Short): Int
  7. implicit def short2long(x: Short): Long
  8. def toString(): String

    The String representation of the scala.Short companion object.

    The String representation of the scala.Short companion object.

    returns

    a String representation of the object.

    Definition Classes
    Short → AnyRef → Any
  9. def unbox(x: AnyRef): Short

    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.Short.

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

    x

    the java.lang.Short to be unboxed.

    returns

    the Short resulting from calling shortValue() on x

    Exceptions thrown

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