SignMagnitudeValuePopulator<SmvType extends SignMagnitudeValue> class
A populator for SignMagnitudeValues, a utility that can populate various forms of SignMagnitudeValues.
Constructors
- SignMagnitudeValuePopulator.new(SmvType _unpopulated)
-
Creates a SignMagnitudeValuePopulator for the given
_unpopulated
SignMagnitudeValue.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ofBigInt(
BigInt intValue) → SmvType -
Populates a SignMagnitudeValue from a big integer
intValue
. -
ofInt(
int intValue) → SmvType -
Populates a SignMagnitudeValue from an integer
intValue
. -
populate(
{required LogicValue sign, required LogicValue magnitude}) → SmvType -
Populates the SignMagnitudeValue with the given
sign
andmagnitude
, then performs additional validation. -
random(
Random rv, {SignMagnitudeValue? gt, SignMagnitudeValue? gte, SignMagnitudeValue? lt, SignMagnitudeValue? lte}) → SmvType - Generate a random SignMagnitudeValue in a signed range.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited