Class TestContentBuilderFactoryRegistry.TestContentBuilder<D,C extends AbstractTestContent<D>>

  • All Implemented Interfaces:
    io.annot8.core.data.Content.Builder<C,D>, io.annot8.core.helpers.builders.WithFromBuilder<io.annot8.core.data.Content.Builder<C,D>,C>, io.annot8.core.helpers.builders.WithIdBuilder<io.annot8.core.data.Content.Builder<C,D>>, io.annot8.core.helpers.builders.WithPropertiesBuilder<io.annot8.core.data.Content.Builder<C,D>>, io.annot8.core.helpers.builders.WithSave<C>
    Enclosing class:
    TestContentBuilderFactoryRegistry

    public static class TestContentBuilderFactoryRegistry.TestContentBuilder<D,C extends AbstractTestContent<D>>
    extends Object
    implements io.annot8.core.data.Content.Builder<C,D>
    • Constructor Detail

      • TestContentBuilder

        public TestContentBuilder​(C instance,
                                  io.annot8.common.implementations.stores.SaveCallback<C,C> saver)
    • Method Detail

      • withId

        public io.annot8.core.data.Content.Builder<C,D> withId​(String id)
        Specified by:
        withId in interface io.annot8.core.helpers.builders.WithIdBuilder<D>
      • withName

        public io.annot8.core.data.Content.Builder<C,D> withName​(String name)
        Specified by:
        withName in interface io.annot8.core.data.Content.Builder<D,C extends AbstractTestContent<D>>
      • withData

        public io.annot8.core.data.Content.Builder<C,D> withData​(Supplier<D> data)
        Specified by:
        withData in interface io.annot8.core.data.Content.Builder<D,C extends AbstractTestContent<D>>
      • from

        public io.annot8.core.data.Content.Builder<C,D> from​(C from)
        Specified by:
        from in interface io.annot8.core.helpers.builders.WithFromBuilder<D,C extends AbstractTestContent<D>>
      • withProperty

        public io.annot8.core.data.Content.Builder<C,D> withProperty​(String key,
                                                                     Object value)
        Specified by:
        withProperty in interface io.annot8.core.helpers.builders.WithPropertiesBuilder<D>
      • withoutProperty

        public io.annot8.core.data.Content.Builder<C,D> withoutProperty​(String key,
                                                                        Object value)
        Specified by:
        withoutProperty in interface io.annot8.core.helpers.builders.WithPropertiesBuilder<D>
      • withoutProperty

        public io.annot8.core.data.Content.Builder<C,D> withoutProperty​(String key)
        Specified by:
        withoutProperty in interface io.annot8.core.helpers.builders.WithPropertiesBuilder<D>
      • withProperties

        public io.annot8.core.data.Content.Builder<C,D> withProperties​(io.annot8.core.properties.Properties properties)
        Specified by:
        withProperties in interface io.annot8.core.helpers.builders.WithPropertiesBuilder<D>
      • save

        public C save()
        Specified by:
        save in interface io.annot8.core.helpers.builders.WithSave<D>