- java.lang.Object
-
- swim.structure.Form<Double>
-
- swim.structure.form.DoubleForm
-
-
Constructor Summary
Constructors Constructor Description DoubleForm(Double unit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
cast(Item item)
Converts a structurally typeditem
into a nominally typed Java object.Item
mold(Double value)
Converts a nominally typed Javaobject
into its structurally typed equivalent.Class<Double>
type()
Returns the reifiedClass
of typeT
.Double
unit()
Returns a default–possiblynull
–value of typeT
.Form<Double>
unit(Double 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
-
-
-
-
Field Detail
-
unit
public final Double unit
-
-
Constructor Detail
-
DoubleForm
public DoubleForm(Double unit)
-
-
Method Detail
-
unit
public Double unit()
Description copied from class:Form
Returns a default–possiblynull
–value of typeT
. Used as the fallback return value whencoercing
an invalid structural value.
-
unit
public Form<Double> unit(Double unit)
Description copied from class:Form
Returns a version of thisForm
with the givenunit
value.
-
type
public Class<Double> type()
Description copied from class:Form
Returns the reifiedClass
of typeT
.
-
mold
public Item mold(Double value)
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent. The returnedItem
must never benull
.
-
-