mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 14:43:57 +01:00
add comment about checking required range in apply
This commit is contained in:
parent
ffcfe360a6
commit
b3cdb6015c
@ -34,7 +34,10 @@ sealed abstract class Number[T <: Number[T]]
|
||||
*/
|
||||
def andMask: BigInt
|
||||
|
||||
/** 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.
|
||||
*/
|
||||
def apply: A => T
|
||||
|
||||
override def +(num: T): T = apply(underlying + num.underlying)
|
||||
|
Loading…
Reference in New Issue
Block a user