Class DelegateContentBuilder<C extends io.annot8.api.data.Content<D>,​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>

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

      • DelegateContentBuilder

        public DelegateContentBuilder​(io.annot8.api.data.Content.Builder<C,​D> delegate)
    • Method Detail

      • withDescription

        public io.annot8.api.data.Content.Builder<C,​D> withDescription​(String description)
        Specified by:
        withDescription in interface io.annot8.api.data.Content.Builder<C extends io.annot8.api.data.Content<D>,​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<C extends io.annot8.api.data.Content<D>,​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<C extends io.annot8.api.data.Content<D>,​D>
      • withId

        public io.annot8.api.data.Content.Builder<C,​D> withId​(String id)
        Specified by:
        withId in interface io.annot8.api.helpers.builders.WithIdBuilder<C extends io.annot8.api.data.Content<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<C extends io.annot8.api.data.Content<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<C extends io.annot8.api.data.Content<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<C extends io.annot8.api.data.Content<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<C extends io.annot8.api.data.Content<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<C extends io.annot8.api.data.Content<D>>
      • save

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