org.feijoas.mango.common.primitives

UInt

Related Docs: object UInt | package primitives

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

A value class for unsigned Int 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[UInt], Comparable[UInt], AnyVal, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. UInt
  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: UInt): UInt

    Returns the result of multiplying this and that.

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

  4. def +(that: UInt): UInt

    Returns the result of adding this and that.

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

  5. def -(that: UInt): UInt

    Returns the result of subtracting this and that.

    Returns the result of subtracting this and that. If the result would be negative, returns the low 32 bits of the result.

  6. def /(that: UInt): UInt

    Returns the result of dividing this by that.

    Returns the result of dividing this by that.

    Exceptions thrown

    ArithmeticException if that is zero

  7. def <(that: UInt): Boolean

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

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

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

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

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

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

    Compares this unsigned Int to another unsigned Int.

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

    Definition Classes
    UInt → Ordered
  14. def compareTo(that: UInt): 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: UInt): UInt

    Returns this mod that.

    Returns this mod that.

    Exceptions thrown

    ArithmeticException if that is zero

  18. def toBigInt(): BigInt

    Returns the value of this UInt as a BigInt.

    Returns the value of this UInt as a BigInt.

  19. def toDouble(): Double

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

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

  20. def toFloat(): Float

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

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

  21. def toInt(): Int

    Returns the value of this UInt as an Int.

    Returns the value of this UInt as an Int. This is an inverse operation to #fromIntBits.

    Note that if this UInt holds a value >= 2^31, the returned value will be equal to this - 2^32.

  22. def toLong(): Long

    Returns the value of this UInt as a Long, when treated as unsigned.

    Returns the value of this UInt as a Long, when treated as unsigned.

  23. def toString(radix: Int): String

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

    Returns a string representation of the UInt 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 UInt value, in base 10.

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

    Definition Classes
    UInt → Any
  25. val value: Int

Inherited from Serializable

Inherited from Serializable

Inherited from Ordered[UInt]

Inherited from Comparable[UInt]

Inherited from AnyVal

Inherited from Any

Ungrouped