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<D,C>, io.annot8.core.helpers.builders.WithIdBuilder<D>, io.annot8.core.helpers.builders.WithPropertiesBuilder<D>, io.annot8.core.helpers.builders.WithSave<D>
    Enclosing class:
    TestContentBuilderFactoryRegistry


    public static class TestContentBuilderFactoryRegistry.TestContentBuilder<D,C extends AbstractTestContent<D>>
    extends java.lang.Object
    implements io.annot8.core.data.Content.Builder<C,D>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.annot8.core.data.Content.Builder<C,D> from​(C from)  
      C save​()  
      io.annot8.core.data.Content.Builder<C,D> withData​(java.util.function.Supplier<D> data)  
      io.annot8.core.data.Content.Builder<C,D> withId​(java.lang.String id)  
      io.annot8.core.data.Content.Builder<C,D> withName​(java.lang.String name)  
      io.annot8.core.data.Content.Builder<C,D> withoutProperty​(java.lang.String key)  
      io.annot8.core.data.Content.Builder<C,D> withoutProperty​(java.lang.String key, java.lang.Object value)  
      io.annot8.core.data.Content.Builder<C,D> withProperties​(io.annot8.core.properties.Properties properties)  
      io.annot8.core.data.Content.Builder<C,D> withProperty​(java.lang.String key, java.lang.Object value)  
      • Methods inherited from interface io.annot8.core.data.Content.Builder

        withData
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestContentBuilder

        public TestContentBuilder​(C instance)
    • Method Detail

      • withId

        public io.annot8.core.data.Content.Builder<C,D> withId​(java.lang.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​(java.lang.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​(java.util.function.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​(java.lang.String key,
                                                                     java.lang.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​(java.lang.String key,
                                                                        java.lang.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​(java.lang.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>