Transformation between a structurally typed
Item
and a BigInteger
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a structurally typeditem
into a nominally typed Java object.mold
(BigInteger value) Converts a nominally typed Javaobject
into its structurally typed equivalent.type()
Returns the reifiedClass
of typeT
.unit()
Returns a default–possiblynull
–value of typeT
.unit
(BigInteger unit) Returns a version of thisForm
with the givenunit
value.Methods inherited from class swim.structure.Form
cast, forArray, forBigInteger, forBoolean, forBuiltin, forByte, forByteBuffer, forCharacter, forClass, forClass, forCollection, forDouble, forFloat, forInteger, forItem, forList, forLong, forMap, forMap, forNumber, forSet, forShort, forString, forValue, isBuiltin, mold, tag, tag
-
Constructor Details
-
BigIntegerForm
-
-
Method Details
-
unit
Description copied from class:Form
Returns a default–possiblynull
–value of typeT
. Used as the fallback return value whencoercing
an invalid structural value.- Overrides:
unit
in classForm<BigInteger>
-
unit
Description copied from class:Form
Returns a version of thisForm
with the givenunit
value.- Overrides:
unit
in classForm<BigInteger>
-
type
Description copied from class:Form
Returns the reifiedClass
of typeT
.- Specified by:
type
in classForm<BigInteger>
-
mold
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent. The returnedItem
must never benull
.- Specified by:
mold
in classForm<BigInteger>
-
cast
Description copied from class:Form
Converts a structurally typeditem
into a nominally typed Java object. The passed-initem
is assumed to be non-null
.- Specified by:
cast
in classForm<BigInteger>
-