org.feijoas.mango.common.primitives

ULong

Related Docs: object ULong | package primitives

final class ULong extends AnyVal with Ordered[ULong] with Serializable

A value class for unsigned Long values, supporting arithmetic operations.

See the Guava User Guide article on unsigned primitive utilities.

Annotations
@SerialVersionUID()
Since

0.10 (copied from Guava-libraries)

Linear Supertypes
Serializable, Serializable, Ordered[ULong], Comparable[ULong], AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ULong
  2. Serializable
  3. Serializable
  4. Ordered
  5. Comparable
  6. AnyVal
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. def *(that: ULong): ULong

    Returns the result of multiplying this and that.

    Returns the result of multiplying this and that. If the result would have more than 64 bits, returns the low 64 bits of the result.

  4. def +(that: ULong): ULong

    Returns the result of adding this and that.

    Returns the result of adding this and that. If the result would have more than 64 bits, returns the low 64 bits of the result.

  5. def -(that: ULong): ULong

    Returns the result of subtracting this and that.

    Returns the result of subtracting this and that. If the result would have more than 64 bits, returns the low 64 bits of the result.

  6. def /(that: ULong): ULong

    Returns the result of dividing this by that.

    Returns the result of dividing this by that.

  7. def <(that: ULong): Boolean

    Definition Classes
    Ordered
  8. def <=(that: ULong): Boolean

    Definition Classes
    Ordered
  9. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  10. def >(that: ULong): Boolean

    Definition Classes
    Ordered
  11. def >=(that: ULong): Boolean

    Definition Classes
    Ordered
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def compare(that: ULong): Int

    Compares this unsigned Long to another unsigned Long.

    Compares this unsigned Long to another unsigned Long. Returns 0 if they are equal, a negative number if this < other, and a positive number if this > other.

    Definition Classes
    ULong → Ordered
  14. def compareTo(that: ULong): Int

    Definition Classes
    Ordered → Comparable
  15. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def mod(that: ULong): ULong

    Returns this modulo that.

    Returns this modulo that.

  18. def toBigInt(): BigInt

    Returns the value of this ULong as a BigInt.

    Returns the value of this ULong as a BigInt.

  19. def toDouble(): Double

    Returns the value of this ULong as a Double, analogous to a widening primitive conversion from Long to Double, and correctly rounded.

    Returns the value of this ULong as a Double, analogous to a widening primitive conversion from Long to Double, and correctly rounded.

  20. def toFloat(): Float

    Returns the value of this ULong as a Float, analogous to a widening primitive conversion from Long to Float, and correctly rounded.

    Returns the value of this ULong as a Float, analogous to a widening primitive conversion from Long to Float, and correctly rounded.

  21. def toInt(): Int

    Returns the value of this ULong as an Int.

    Returns the value of this ULong as an Int.

  22. def toLong(): Long

    Returns the value of this ULong as a Long.

    Returns the value of this ULong as a Long. This is an inverse operation to #fromLongBits.

    Note that if this ULong holds a value >= 2^63, the returned value will be equal to this - 2^64.

  23. def toString(radix: Int): String

    Returns a string representation of the ULong value, in base radix.

    Returns a string representation of the ULong value, in base radix. If radix < Character.MIN_RADIX or radix > Character.MAX_RADIX, the radix 10 is used.

  24. def toString(): String

    Returns a string representation of the ULong value, in base 10.

    Returns a string representation of the ULong value, in base 10.

    Definition Classes
    ULong → Any
  25. val value: Long

Inherited from Serializable

Inherited from Serializable

Inherited from Ordered[ULong]

Inherited from Comparable[ULong]

Inherited from AnyVal

Inherited from Any

Ungrouped