- java.lang.Object
-
- swim.structure.Form<T>
-
- swim.structure.form.FieldForm<T>
-
- swim.structure.form.SlotForm<T>
-
public final class SlotForm<T> extends FieldForm<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcast(Item item, T object)Converts a structurally typediteminto a nominally typed Java object based on the provided prototypeobject.Fieldfield()Valuekey()Itemmold(T object)Converts a nominally typed Javaobjectinto its structurally typed equivalent.Itemmold(T object, Item item)Converts a nominally typed Javaobjectinto its structurally typed equivalent based on the provided prototypeitem.Class<?>type()Returns the reifiedClassof typeT.-
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, tag, tag, unit, unit
-
-
-
-
Method Detail
-
type
public Class<?> type()
Description copied from class:FormReturns the reifiedClassof typeT.
-
mold
public Item mold(T object, Item item)
Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent based on the provided prototypeitem. The passed-initemis assumed to be non-null. The returnedItemmust never benull.
-
mold
public Item mold(T object)
Description copied from class:FormConverts a nominally typed Javaobjectinto its structurally typed equivalent. The returnedItemmust never benull.
-
-