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 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
  19. def 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
  20. 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
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. def byte: Byte
  23. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  24. lazy val bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    NumberNetworkElement
  25. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

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

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    UInt5NetworkElement
  34. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. 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
  37. 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
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. 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
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. def toBigInt: BigInt
    Definition Classes
    Number
  44. def toInt: Int
    Definition Classes
    Number
  45. def toLong: Long
    Definition Classes
    Number
  46. def toString(): String
    Definition Classes
    AnyRef → Any
  47. def toUInt8: UInt8
  48. def unary_-: UInt5
    Definition Classes
    Number
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. def |(num: UInt5): UInt5
    Definition Classes
    Number

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

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