Packages

object Long extends AnyValCompanion

Source
Long.scala
Linear Supertypes
AnyValCompanion, Specializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Long
  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: Long(9223372036854775807L)

    The largest value representable as a Long.

  2. final val MinValue: Long(-9223372036854775808L)

    The smallest value representable as a Long.

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

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

    x

    the Long to be boxed

    returns

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

  4. implicit def long2double(x: Long): Double
  5. implicit def long2float(x: Long): Float
  6. def toString(): String

    The String representation of the scala.Long companion object.

    The String representation of the scala.Long companion object.

    returns

    a String representation of the object.

    Definition Classes
    Long → AnyRef → Any
  7. def unbox(x: AnyRef): Long

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

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

    x

    the java.lang.Long to be unboxed.

    returns

    the Long resulting from calling longValue() on x

    Exceptions thrown

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