- java.lang.Object
- 
- swim.structure.Form<Item>
- 
- swim.structure.form.ItemForm
 
 
- 
 public final class ItemForm extends Form<Item> Fall-through "transformation" between a structuralItemand a nominalItem. Bothmold(swim.structure.Item)andcast(swim.structure.Item)simply return theItemargument itself.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Itemcast(Item item)Converts a structurally typediteminto a nominally typed Java object.Itemmold(Item item)Converts a nominally typed Javaobjectinto its structurally typed equivalent.Class<Item>type()Returns the reifiedClassof typeT.Itemunit()Returns a default–possiblynull–value of typeT.Form<Item>unit(Item unit)Returns a version of thisFormwith the givenunitvalue.- 
Methods inherited from class swim.structure.Formcast, 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- 
ItemFormpublic ItemForm(Item unit) 
 
- 
 - 
Method Detail- 
unitpublic Item unit() Description copied from class:FormReturns a default–possiblynull–value of typeT. Used as the fallback return value whencoercingan invalid structural value.
 - 
unitpublic Form<Item> unit(Item unit) Description copied from class:FormReturns a version of thisFormwith the givenunitvalue.
 - 
typepublic Class<Item> type() Description copied from class:FormReturns the reifiedClassof typeT.
 - 
moldpublic Item mold(Item item) Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent. The returnedItemmust never benull.
 
- 
 
-