Packages

c

org.bitcoins.core.number

SignedNumber

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

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SignedNumber
  2. Number
  3. BasicArithmetic
  4. Ordered
  5. Comparable
  6. NetworkElement
  7. AnyRef
  8. 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 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
    Number
  2. abstract def apply: (A) => T

    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
    Number
  3. 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: T): T
    Definition Classes
    Number
  4. def *(num: T): T
    Definition Classes
    NumberBasicArithmetic
  5. def *(factor: BigInt): T
    Definition Classes
    NumberBasicArithmetic
  6. def +(num: T): T
    Definition Classes
    NumberBasicArithmetic
  7. def -(num: T): T
    Definition Classes
    NumberBasicArithmetic
  8. def /(num: T): T
    Definition Classes
    Number
  9. def <(that: T): Boolean
    Definition Classes
    Ordered
  10. def <<(num: T): T
    Definition Classes
    Number
  11. def <<(num: Int): T
    Definition Classes
    Number
  12. def <=(that: T): Boolean
    Definition Classes
    Ordered
  13. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def >(that: T): Boolean
    Definition Classes
    Ordered
  15. def >=(that: T): Boolean
    Definition Classes
    Ordered
  16. def >>(num: T): T
    Definition Classes
    Number
  17. def >>(num: Int): T
    Definition Classes
    Number
  18. def addSafe(n: T): Try[T]

    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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  20. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  21. lazy val bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    NumberNetworkElement
  22. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

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

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  32. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def multiplySafe(factor: T): Try[T]

    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
  35. def multiplySafe(factor: BigInt): Try[T]

    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
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. def subtractSafe(n: T): Try[T]

    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
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. def toBigInt: BigInt
    Definition Classes
    Number
  42. def toInt: Int
    Definition Classes
    Number
  43. def toLong: Long
    Definition Classes
    Number
  44. def toString(): String
    Definition Classes
    AnyRef → Any
  45. def unary_-: T
    Definition Classes
    Number
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  49. def |(num: T): T
    Definition Classes
    Number

Inherited from Number[T]

Inherited from BasicArithmetic[T]

Inherited from Ordered[T]

Inherited from Comparable[T]

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped