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

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

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

      • TestContentBuilder

        public TestContentBuilder​(C instance)
    • Method Detail

      • withId

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

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

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

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

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

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

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

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

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

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