java.lang.Object
swim.structure.Form<T>
swim.structure.form.UnitForm<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a structurally typeditem
into a nominally typed Java object.Converts a structurally typeditem
into a nominally typed Java object based on the provided prototypeobject
.Converts a nominally typed Javaobject
into its structurally typed equivalent.Converts a nominally typed Javaobject
into its structurally typed equivalent based on the provided prototypeitem
.tag()
Returns the key of the tag attribute that distinguishes structures of thisForm
; returnsnull
if thisForm
has no distinguishing tag attribute.Class<?>
type()
Returns the reifiedClass
of typeT
.unit()
Returns a default–possiblynull
–value of typeT
.Returns a version of thisForm
with the givenunit
value.Methods inherited from class swim.structure.Form
forArray, forBigInteger, forBoolean, forBuiltin, forByte, forByteBuffer, forCharacter, forClass, forClass, forCollection, forDouble, forFloat, forInteger, forItem, forList, forLong, forMap, forMap, forNumber, forSet, forShort, forString, forValue, isBuiltin
-
Constructor Details
-
UnitForm
-
-
Method Details
-
tag
Description copied from class:Form
Returns the key of the tag attribute that distinguishes structures of thisForm
; returnsnull
if thisForm
has no distinguishing tag attribute. Used to accelerate distrcrimination of polymorphic structural types with nominal type hints. -
tag
Description copied from class:Form
-
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
Description copied from class:Form
Returns a version of thisForm
with the givenunit
value. -
type
Description copied from class:Form
Returns the reifiedClass
of typeT
. -
mold
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
Description copied from class:Form
Converts a nominally typed Javaobject
into its structurally typed equivalent. The returnedItem
must never benull
. -
cast
Description copied from class:Form
Converts a structurally typeditem
into a nominally typed Java object based on the provided prototypeobject
. The passed-initem
is assumed to be non-null
. The passed-in prototypeobject
may benull
. -
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
.
-