- java.lang.Object
-
- swim.structure.Form<Object>
-
- swim.structure.form.ArrayForm
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
cast(Item item)
Converts a structurally typeditem
into a nominally typed Java object.Item
mold(Object array)
Converts a nominally typed Javaobject
into its structurally typed equivalent.Item
mold(Object array, Item item)
Converts a nominally typed Javaobject
into its structurally typed equivalent based on the provided prototypeitem
.Class<?>
type()
Returns the reifiedClass
of typeT
.Object
unit()
Returns a default–possiblynull
–value of typeT
.-
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, tag, tag, unit
-
-
-
-
Method Detail
-
unit
public Object unit()
Description copied from class:Form
Returns a default–possiblynull
–value of typeT
. Used as the fallback return value whencoercing
an invalid structural value.
-
type
public Class<?> type()
Description copied from class:Form
Returns the reifiedClass
of typeT
.
-
mold
public Item mold(Object array, Item item)
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent based on the provided prototypeitem
. The passed-initem
is assumed to be non-null
. The returnedItem
must never benull
.
-
mold
public Item mold(Object array)
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent. The returnedItem
must never benull
.
-
-