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

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

Deprecated Value Members

  1. implicit def long2double(x: Long): Double
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.1) Implicit conversion from Long to Double is dangerous because it loses precision. Write .toDouble instead.

  2. implicit def long2float(x: Long): Float
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.1) Implicit conversion from Long to Float is dangerous because it loses precision. Write .toFloat instead.