Packages

c

scala.runtime

RichLong

final class RichLong extends AnyVal with IntegralProxy[Long]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichLong
  2. IntegralProxy
  3. RangedProxy
  4. ScalaWholeNumberProxy
  5. ScalaNumberProxy
  6. OrderedProxy
  7. Ordered
  8. Comparable
  9. Typed
  10. Proxy
  11. ScalaNumericAnyConversions
  12. AnyVal
  13. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichLong(self: Long)

Type Members

  1. type ResultWithoutStep = NumericRange[Long]
    Definition Classes
    IntegralProxyRangedProxy

Value Members

  1. def <(that: Long): Boolean

    Returns true if this is less than that

    Returns true if this is less than that

    Definition Classes
    Ordered
  2. def <=(that: Long): Boolean

    Returns true if this is less than or equal to that.

    Returns true if this is less than or equal to that.

    Definition Classes
    Ordered
  3. def >(that: Long): Boolean

    Returns true if this is greater than that.

    Returns true if this is greater than that.

    Definition Classes
    Ordered
  4. def >=(that: Long): Boolean

    Returns true if this is greater than or equal to that.

    Returns true if this is greater than or equal to that.

    Definition Classes
    Ordered
  5. def abs: Long

    Returns the absolute value of this.

    Returns the absolute value of this.

    Definition Classes
    RichLongScalaNumberProxy
  6. def byteValue(): Byte
  7. def compare(y: Long): Int

    Result of comparing this with operand that.

    Result of comparing this with operand that.

    Implement this method to determine how instances of A will be sorted.

    Returns x where:

    • x < 0 when this < that
    • x == 0 when this == that
    • x > 0 when this > that
    Definition Classes
    OrderedProxyOrdered
  8. def compareTo(that: Long): Int

    Result of comparing this with operand that.

    Result of comparing this with operand that.

    Definition Classes
    Ordered → Comparable
  9. def doubleValue(): Double
  10. def floatValue(): Float
  11. def getClass(): Class[_ <: AnyVal]

    Returns the runtime class representation of the object.

    Returns the runtime class representation of the object.

    returns

    a class object corresponding to the runtime type of the receiver.

    Definition Classes
    AnyValAny
  12. def intValue(): Int
  13. def isValidByte: Boolean

    Returns true iff this has a zero fractional part, and is within the range of scala.Byte MinValue and MaxValue; otherwise returns false.

    Returns true iff this has a zero fractional part, and is within the range of scala.Byte MinValue and MaxValue; otherwise returns false.

    Definition Classes
    RichLongScalaNumericAnyConversions
  14. def isValidChar: Boolean

    Returns true iff this has a zero fractional part, and is within the range of scala.Char MinValue and MaxValue; otherwise returns false.

    Returns true iff this has a zero fractional part, and is within the range of scala.Char MinValue and MaxValue; otherwise returns false.

    Definition Classes
    RichLongScalaNumericAnyConversions
  15. def isValidInt: Boolean

    Returns true iff this has a zero fractional part, and is within the range of scala.Int MinValue and MaxValue; otherwise returns false.

    Returns true iff this has a zero fractional part, and is within the range of scala.Int MinValue and MaxValue; otherwise returns false.

    Definition Classes
    RichLongScalaNumericAnyConversions
  16. def isValidLong: Boolean
  17. def isValidShort: Boolean

    Returns true iff this has a zero fractional part, and is within the range of scala.Short MinValue and MaxValue; otherwise returns false.

    Returns true iff this has a zero fractional part, and is within the range of scala.Short MinValue and MaxValue; otherwise returns false.

    Definition Classes
    RichLongScalaNumericAnyConversions
  18. def isWhole(): Boolean

    returns

    true if this number has no decimal component, false otherwise.

    Definition Classes
    ScalaWholeNumberProxyScalaNumericAnyConversions
  19. def longValue(): Long
  20. def max(that: Long): Long

    Returns this if this > that or that otherwise.

    Returns this if this > that or that otherwise.

    Definition Classes
    RichLongScalaNumberProxy
  21. def min(that: Long): Long

    Returns this if this < that or that otherwise.

    Returns this if this < that or that otherwise.

    Definition Classes
    RichLongScalaNumberProxy
  22. val self: Long
    Definition Classes
    RichLongTypedProxy
  23. def shortValue(): Short
  24. def signum: Int

    Returns the signum of this.

    Returns the signum of this.

    Definition Classes
    RichLongScalaNumberProxy
  25. def to(end: Long, step: Long): Inclusive[Long]
    Definition Classes
    IntegralProxyRangedProxy
  26. def to(end: Long): Inclusive[Long]
    Definition Classes
    IntegralProxyRangedProxy
  27. def toBinaryString: String
  28. def toByte: Byte

    Returns the value of this as a scala.Byte.

    Returns the value of this as a scala.Byte. This may involve rounding or truncation.

    Definition Classes
    ScalaNumericAnyConversions
  29. def toChar: Char

    Returns the value of this as a scala.Char.

    Returns the value of this as a scala.Char. This may involve rounding or truncation.

    Definition Classes
    ScalaNumericAnyConversions
  30. def toDouble: Double

    Returns the value of this as a scala.Double.

    Returns the value of this as a scala.Double. This may involve rounding or truncation.

    Definition Classes
    ScalaNumericAnyConversions
  31. def toFloat: Float

    Returns the value of this as a scala.Float.

    Returns the value of this as a scala.Float. This may involve rounding or truncation.

    Definition Classes
    ScalaNumericAnyConversions
  32. def toHexString: String
  33. def toInt: Int

    Returns the value of this as an scala.Int.

    Returns the value of this as an scala.Int. This may involve rounding or truncation.

    Definition Classes
    ScalaNumericAnyConversions
  34. def toLong: Long

    Returns the value of this as a scala.Long.

    Returns the value of this as a scala.Long. This may involve rounding or truncation.

    Definition Classes
    ScalaNumericAnyConversions
  35. def toOctalString: String
  36. def toShort: Short

    Returns the value of this as a scala.Short.

    Returns the value of this as a scala.Short. This may involve rounding or truncation.

    Definition Classes
    ScalaNumericAnyConversions
  37. def toString(): String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    Definition Classes
    ProxyAny
  38. def underlying(): AnyRef
  39. def until(end: Long, step: Long): Exclusive[Long]
    Definition Classes
    IntegralProxyRangedProxy
  40. def until(end: Long): Exclusive[Long]
    Definition Classes
    IntegralProxyRangedProxy

Deprecated Value Members

  1. def round: Long

    There is no reason to round a Long, but this method is provided to avoid accidental conversion to Int through Float.

    There is no reason to round a Long, but this method is provided to avoid accidental conversion to Int through Float.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) this is an integer type; there is no reason to round it. Perhaps you meant to call this on a floating-point value?