Packages

sealed abstract class UInt5 extends UnsignedNumber[UInt5]

This number type is useful for dealing with org.bitcoins.core.util.Bech32 related applications. The native encoding for Bech32 is a 5 bit number which is what this abstraction is meant to be used for

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UInt5
  2. UnsignedNumber
  3. Number
  4. BasicArithmetic
  5. Ordered
  6. Comparable
  7. NetworkElement
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type A = BigInt
    Definition Classes
    Number

Abstract Value Members

  1. abstract def underlying: A

    The underlying scala number used to to hold the number

    The underlying scala number used to to hold the number

    Attributes
    protected
    Definition Classes
    Number

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &(num: UInt5): UInt5
    Definition Classes
    Number
  4. def *(num: UInt5): UInt5
    Definition Classes
    NumberBasicArithmetic
  5. def *(factor: BigInt): UInt5
    Definition Classes
    NumberBasicArithmetic
  6. def +(num: UInt5): UInt5
    Definition Classes
    NumberBasicArithmetic
  7. def -(num: UInt5): UInt5
    Definition Classes
    NumberBasicArithmetic
  8. def /(num: UInt5): UInt5
    Definition Classes
    Number
  9. def <(that: UInt5): Boolean
    Definition Classes
    Ordered
  10. def <<(num: UInt5): UInt5
    Definition Classes
    Number
  11. def <<(num: Int): UInt5
    Definition Classes
    Number
  12. def <=(that: UInt5): Boolean
    Definition Classes
    Ordered
  13. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def >(that: UInt5): Boolean
    Definition Classes
    Ordered
  15. def >=(that: UInt5): Boolean
    Definition Classes
    Ordered
  16. def >>(num: UInt5): UInt5
    Definition Classes
    Number
  17. def >>(num: Int): UInt5
    Definition Classes
    Number
  18. def ^(num: Long): UInt5
    Definition Classes
    Number
  19. def ^(num: UInt5): UInt5
    Definition Classes
    Number
  20. def addSafe(n: UInt5): Try[UInt5]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the + operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  21. val andMask: BigInt

    This is used to determine the valid amount of bytes in a number for instance a UInt8 has an andMask of 0xff a UInt32 has an andMask of 0xffffffff

    This is used to determine the valid amount of bytes in a number for instance a UInt8 has an andMask of 0xff a UInt32 has an andMask of 0xffffffff

    Definition Classes
    UInt5Number
  22. def apply: (A) => UInt5

    Factory function to create the underlying T, for instance a UInt32.

    Factory function to create the underlying T, for instance a UInt32. This method must check if the parameter is in the required range.

    Definition Classes
    UInt5Number
  23. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  24. def byte: Byte
  25. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  26. val bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    UInt5NetworkElement
  27. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  28. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  29. def compare(num: UInt5): Int
    Definition Classes
    Number → Ordered
  30. def compareTo(that: UInt5): Int
    Definition Classes
    Ordered → Comparable
  31. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  33. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  34. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  35. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  36. def hex: String

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  37. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. final def isSigned: Boolean
    Definition Classes
    UnsignedNumberNumber
  40. def multiplySafe(factor: UInt5): Try[UInt5]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the * operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  41. def multiplySafe(factor: BigInt): Try[UInt5]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the * operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. def subtractSafe(n: UInt5): Try[UInt5]

    Some classes have restrictions on lower bounds for it's underlying value.

    Some classes have restrictions on lower bounds for it's underlying value. This might cause the - operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  46. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  47. def toBigInt: BigInt
    Definition Classes
    Number
  48. def toInt: Int
    Definition Classes
    Number
  49. def toLong: Long
    Definition Classes
    Number
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. def toUInt8: UInt8
  52. def truncatedBytes: ByteVector
    Definition Classes
    Number
  53. def unary_-: UInt5
    Definition Classes
    Number
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  57. def xor(num: Long): UInt5
    Definition Classes
    Number
  58. def xor(num: UInt5): UInt5
    Definition Classes
    Number
  59. def |(num: UInt5): UInt5
    Definition Classes
    Number

Inherited from UnsignedNumber[UInt5]

Inherited from Number[UInt5]

Inherited from BasicArithmetic[UInt5]

Inherited from Ordered[UInt5]

Inherited from Comparable[UInt5]

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped