org.feijoas.mango.common.primitives

UByte

Related Docs: object UByte | package primitives

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

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

    Definition Classes
    Ordered
  4. def <=(that: UByte): Boolean

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

    Definition Classes
    Any
  6. def >(that: UByte): Boolean

    Definition Classes
    Ordered
  7. def >=(that: UByte): Boolean

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

    Definition Classes
    Any
  9. def compare(that: UByte): Int

    Compares this unsigned Byte to another unsigned Byte.

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

    Definition Classes
    UByte → Ordered
  10. def compareTo(that: UByte): Int

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

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

    Definition Classes
    Any
  13. def toBigInt(): BigInt

    Returns the value of this UInt as a BigInt.

    Returns the value of this UInt as a BigInt.

  14. def toDouble(): Double

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

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

  15. def toFloat(): Float

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

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

  16. def toInt(): Int

    Returns the value of the given Byte as an integer, when treated as unsigned.

    Returns the value of the given Byte as an integer, when treated as unsigned. That is, returns value + 256 if value is negative; value itself otherwise.

  17. def toLong(): Long

    Returns the value of this UByte as a Long.

    Returns the value of this UByte as a Long. This is an inverse operation.

  18. def toString(radix: Int): String

    Returns a string representation of x for the given radix, where x is treated as unsigned.

    Returns a string representation of x for the given radix, where x is treated as unsigned.

    radix

    the radix to use while working with x

    Exceptions thrown

    IllegalArgumentException if radix is not between Character#MIN_RADIX and Character#MAX_RADIX.

  19. def toString(): String

    Returns a string representation of x, where x is treated as unsigned.

    Returns a string representation of x, where x is treated as unsigned.

    Definition Classes
    UByte → Any
  20. val value: Byte

Inherited from Serializable

Inherited from Serializable

Inherited from Ordered[UByte]

Inherited from Comparable[UByte]

Inherited from AnyVal

Inherited from Any

Ungrouped