Class SlotForm<T>


  • public final class SlotForm<T>
    extends FieldForm<T>
    • Constructor Detail

      • SlotForm

        public SlotForm​(Field field,
                        Value key,
                        Form<?> form)
    • Method Detail

      • type

        public Class<?> type()
        Description copied from class: Form
        Returns the reified Class of type T.
        Specified by:
        type in class Form<T>
      • mold

        public Item mold​(T object,
                         Item item)
        Description copied from class: Form
        Converts a nominally typed Java object into its structurally typed equivalent based on the provided prototype item. The passed-in item is assumed to be non-null. The returned Item must never be null.
        Overrides:
        mold in class Form<T>
      • mold

        public Item mold​(T object)
        Description copied from class: Form
        Converts a nominally typed Java object into its structurally typed equivalent. The returned Item must never be null.
        Specified by:
        mold in class Form<T>
      • cast

        public T cast​(Item item,
                      T object)
        Description copied from class: Form
        Converts a structurally typed item into a nominally typed Java object based on the provided prototype object. The passed-in item is assumed to be non-null. The passed-in prototype object may be null.
        Specified by:
        cast in class FieldForm<T>