- java.lang.Object
-
- swim.structure.Form<Integer>
-
- swim.structure.form.IntegerForm
-
-
Constructor Summary
Constructors Constructor Description IntegerForm(Integer unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integercast(Item item)Converts a structurally typediteminto a nominally typed Java object.Itemmold(Integer value)Converts a nominally typed Javaobjectinto its structurally typed equivalent.Class<Integer>type()Returns the reifiedClassof typeT.Integerunit()Returns a default–possiblynull–value of typeT.Form<Integer>unit(Integer 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
-
IntegerForm
public IntegerForm(Integer unit)
-
-
Method Detail
-
unit
public Integer unit()
Description copied from class:FormReturns a default–possiblynull–value of typeT. Used as the fallback return value whencoercingan invalid structural value.
-
unit
public Form<Integer> unit(Integer unit)
Description copied from class:FormReturns a version of thisFormwith the givenunitvalue.
-
type
public Class<Integer> type()
Description copied from class:FormReturns the reifiedClassof typeT.
-
mold
public Item mold(Integer value)
Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent. The returnedItemmust never benull.
-
-