Fall-through "transformation" between a structural
Item and a nominal
Item. Both mold(swim.structure.Item) and cast(swim.structure.Item) simply return the
Item argument itself.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a structurally typediteminto a nominally typed Java object.Converts a nominally typed Javaobjectinto its structurally typed equivalent.type()Returns the reifiedClassof typeT.unit()Returns a default–possiblynull–value of typeT.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 Details
-
ItemForm
-
-
Method Details
-
unit
Description copied from class:FormReturns a default–possiblynull–value of typeT. Used as the fallback return value whencoercingan invalid structural value. -
unit
Description copied from class:FormReturns a version of thisFormwith the givenunitvalue. -
type
Description copied from class:FormReturns the reifiedClassof typeT. -
mold
Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent. The returnedItemmust never benull. -
cast
Description copied from class:FormConverts a structurally typediteminto a nominally typed Java object. The passed-initemis assumed to be non-null.
-