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
- Alphabetic
- By Inheritance
- UInt5
- UnsignedNumber
- Number
- BasicArithmetic
- Ordered
- Comparable
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def &(num: UInt5): UInt5
- Definition Classes
- Number
- def *(num: UInt5): UInt5
- Definition Classes
- Number → BasicArithmetic
- def *(factor: BigInt): UInt5
- Definition Classes
- Number → BasicArithmetic
- def +(num: UInt5): UInt5
- Definition Classes
- Number → BasicArithmetic
- def -(num: UInt5): UInt5
- Definition Classes
- Number → BasicArithmetic
- def /(num: UInt5): UInt5
- Definition Classes
- Number
- def <(that: UInt5): Boolean
- Definition Classes
- Ordered
- def <<(num: UInt5): UInt5
- Definition Classes
- Number
- def <<(num: Int): UInt5
- Definition Classes
- Number
- def <=(that: UInt5): Boolean
- Definition Classes
- Ordered
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(that: UInt5): Boolean
- Definition Classes
- Ordered
- def >=(that: UInt5): Boolean
- Definition Classes
- Ordered
- def >>(num: UInt5): UInt5
- Definition Classes
- Number
- def >>(num: Int): UInt5
- Definition Classes
- Number
- def ^(num: Long): UInt5
- Definition Classes
- Number
- def ^(num: UInt5): UInt5
- Definition Classes
- Number
- 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 aTry
block.- Definition Classes
- BasicArithmetic
- 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
- def apply: (A) => UInt5
Factory function to create the underlying T, for instance a UInt32.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def byte: Byte
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- val bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- UInt5 → NetworkElement
- def bytesLE: ByteVector
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compare(num: UInt5): Int
- Definition Classes
- Number → Ordered
- def compareTo(that: UInt5): Int
- Definition Classes
- Ordered → Comparable
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hex: String
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
- Definition Classes
- NetworkElement
- def hexLE: String
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isSigned: Boolean
- Definition Classes
- UnsignedNumber → Number
- 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 aTry
block.- Definition Classes
- BasicArithmetic
- 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 aTry
block.- Definition Classes
- BasicArithmetic
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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 aTry
block.- Definition Classes
- BasicArithmetic
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toBigInt: BigInt
- Definition Classes
- Number
- def toByte: Byte
- Definition Classes
- Number
- def toInt: Int
- Definition Classes
- Number
- def toLong: Long
- Definition Classes
- Number
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toUInt8: UInt8
- def truncatedBytes: ByteVector
- Definition Classes
- Number
- def unary_-: UInt5
- Definition Classes
- Number
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def xor(num: Long): UInt5
- Definition Classes
- Number
- def xor(num: UInt5): UInt5
- Definition Classes
- Number
- def |(num: UInt5): UInt5
- Definition Classes
- Number