package number
- Alphabetic
- Public
- Protected
Type Members
- trait BaseNumbers[T] extends AnyRef
- trait BasicArithmetic[N] extends AnyRef
- trait Bounded[T] extends AnyRef
Represents number types that are bounded by minimum and maximum values
Represents number types that are bounded by minimum and maximum values
- T
Type of the numbers
- sealed abstract class Int32 extends SignedNumber[Int32]
Represents a int32_t in C
- sealed abstract class Int64 extends SignedNumber[Int64]
Represents a int64_t in C
- sealed abstract class Number[T <: Number[T]] extends NetworkElement with Ordered[T] with BasicArithmetic[T]
This abstract class is meant to represent a signed and unsigned number in C This is useful for dealing with codebases/protocols that rely on C's unsigned integer types
- trait NumberCache[T] extends AnyRef
Helper trait to cache data types that represent numbers Examples are org.bitcoins.core.script.constant.ScriptNumber UInt32 UInt64 etc
- trait NumberCacheBigInt[T] extends NumberCache[T]
Number cache, except for scala BigInt
- trait NumberObject[T <: Number[T]] extends BaseNumbers[T]
Should be implemented inside of any companion object for a number
- sealed abstract class SignedNumber[T <: Number[T]] extends Number[T]
Represents a signed number in our number system Instances of this are Int32 or Int64
- sealed abstract class UInt16 extends UnsignedNumber[UInt16]
Represents a uint16_t in C
- sealed abstract class UInt32 extends UnsignedNumber[UInt32]
Represents a uint32_t in C
- sealed abstract class UInt5 extends UnsignedNumber[UInt5]
This number type is useful for dealing with org.bitcoins.core.util.Bech32 related applications.
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
- sealed abstract class UInt64 extends UnsignedNumber[UInt64]
Represents a uint64_t in C
- sealed abstract class UInt8 extends UnsignedNumber[UInt8]
- sealed abstract class UnsignedNumber[T <: Number[T]] extends Number[T]
Represents an unsigned number in our number system Instances of this are UInt32 or UInt64
Value Members
- object Int32 extends Factory[Int32] with NumberObject[Int32] with Bounded[Int32] with NumberCache[Int32]
- object Int64 extends Factory[Int64] with NumberObject[Int64] with Bounded[Int64] with NumberCache[Int64]
- object UInt16 extends Factory[UInt16] with NumberObject[UInt16] with Bounded[UInt16] with NumberCache[UInt16]
- object UInt32 extends Factory[UInt32] with NumberObject[UInt32] with Bounded[UInt32] with NumberCache[UInt32]
- object UInt5 extends Factory[UInt5] with NumberObject[UInt5] with Bounded[UInt5] with NumberCache[UInt5]
- object UInt64 extends Factory[UInt64] with NumberObject[UInt64] with Bounded[UInt64] with NumberCacheBigInt[UInt64]
- object UInt8 extends Factory[UInt8] with NumberObject[UInt8] with Bounded[UInt8] with NumberCache[UInt8]