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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.annot8.api.data.Content.Builder<C,D>create(io.annot8.api.data.Item item)Create a new builder for the provided item.Class<C>getContentClass()Get the content class created.Class<D>getDataClass()Get the class of the data this content holds
-
-
-
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
-
-