- java.lang.Object
-
- swim.structure.Form<BigInteger>
-
- swim.structure.form.BigIntegerForm
-
public final class BigIntegerForm extends Form<BigInteger>
Transformation between a structurally typedItemand aBigInteger.
-
-
Constructor Summary
Constructors Constructor Description BigIntegerForm(BigInteger unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegercast(Item item)Converts a structurally typediteminto a nominally typed Java object.Itemmold(BigInteger value)Converts a nominally typed Javaobjectinto its structurally typed equivalent.Class<BigInteger>type()Returns the reifiedClassof typeT.BigIntegerunit()Returns a default–possiblynull–value of typeT.Form<BigInteger>unit(BigInteger unit)Returns a version of thisFormwith the givenunitvalue.-
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 Detail
-
BigIntegerForm
public BigIntegerForm(BigInteger unit)
-
-
Method Detail
-
unit
public BigInteger unit()
Description copied from class:FormReturns a default–possiblynull–value of typeT. Used as the fallback return value whencoercingan invalid structural value.- Overrides:
unitin classForm<BigInteger>
-
unit
public Form<BigInteger> unit(BigInteger unit)
Description copied from class:FormReturns a version of thisFormwith the givenunitvalue.- Overrides:
unitin classForm<BigInteger>
-
type
public Class<BigInteger> type()
Description copied from class:FormReturns the reifiedClassof typeT.- Specified by:
typein classForm<BigInteger>
-
mold
public Item mold(BigInteger value)
Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent. The returnedItemmust never benull.- Specified by:
moldin classForm<BigInteger>
-
cast
public BigInteger cast(Item item)
Description copied from class:FormConverts a structurally typediteminto a nominally typed Java object. The passed-initemis assumed to be non-null.- Specified by:
castin classForm<BigInteger>
-
-