Interface ContentBuilderFactory<D,​C extends Content<D>>

  • All Known Implementing Classes:
    AbstractContentBuilderFactory

    public interface ContentBuilderFactory<D,​C extends Content<D>>
    Factory to createContent an content builder.

    Typically used in a Item.createContent().

    • Method Detail

      • create

        Content.Builder<C,​D> create​(Item item)
        Create a new builder for the provided item.
        Parameters:
        item - the item owning this content
        Returns:
        non-null builder
      • getDataClass

        Class<D> getDataClass()
        Get the class of the data this content holds
        Returns:
        the data class
      • getContentClass

        Class<C> getContentClass()
        Get the content class created.
        Returns:
        content class (being implemented)