Interface ContentBuilderFactory<D,​C extends io.annot8.api.data.Content<D>>

  • All Known Implementing Classes:
    AbstractContentBuilderFactory

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

    Typically used in a Item.createContent().

    • Method Detail

      • create

        io.annot8.api.data.Content.Builder<C,​D> create​(io.annot8.api.data.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)