Class DelegateContentBuilder<C extends Content<D>,D>
- java.lang.Object
-
- io.annot8.implementations.support.delegates.DelegateContentBuilder<C,D>
-
- All Implemented Interfaces:
Content.Builder<C,D>,WithFromBuilder<Content.Builder<C,D>,C>,WithIdBuilder<Content.Builder<C,D>>,WithPropertiesBuilder<Content.Builder<C,D>>,WithSave<C>
public class DelegateContentBuilder<C extends Content<D>,D> extends Object implements Content.Builder<C,D>
-
-
Constructor Summary
Constructors Constructor Description DelegateContentBuilder(Content.Builder<C,D> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Content.Builder<C,D>from(C from)Csave()Content.Builder<C,D>withData(Supplier<D> data)Content.Builder<C,D>withDescription(String description)Content.Builder<C,D>withId(String id)Content.Builder<C,D>withoutProperty(String key)Content.Builder<C,D>withoutProperty(String key, Object value)Content.Builder<C,D>withProperties(Properties properties)Content.Builder<C,D>withProperty(String key, Object value)Content.Builder<C,D>withPropertyIfPresent(String key, Optional<?> value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.annot8.api.data.Content.Builder
withData
-
-
-
-
Constructor Detail
-
DelegateContentBuilder
public DelegateContentBuilder(Content.Builder<C,D> delegate)
-
-
Method Detail
-
withDescription
public Content.Builder<C,D> withDescription(String description)
- Specified by:
withDescriptionin interfaceContent.Builder<C extends Content<D>,D>
-
withData
public Content.Builder<C,D> withData(Supplier<D> data)
-
from
public Content.Builder<C,D> from(C from)
-
withId
public Content.Builder<C,D> withId(String id)
- Specified by:
withIdin interfaceWithIdBuilder<C extends Content<D>>
-
withProperty
public Content.Builder<C,D> withProperty(String key, Object value)
- Specified by:
withPropertyin interfaceWithPropertiesBuilder<C extends Content<D>>
-
withPropertyIfPresent
public Content.Builder<C,D> withPropertyIfPresent(String key, Optional<?> value)
- Specified by:
withPropertyIfPresentin interfaceWithPropertiesBuilder<C extends Content<D>>
-
withoutProperty
public Content.Builder<C,D> withoutProperty(String key, Object value)
- Specified by:
withoutPropertyin interfaceWithPropertiesBuilder<C extends Content<D>>
-
withoutProperty
public Content.Builder<C,D> withoutProperty(String key)
- Specified by:
withoutPropertyin interfaceWithPropertiesBuilder<C extends Content<D>>
-
withProperties
public Content.Builder<C,D> withProperties(Properties properties)
- Specified by:
withPropertiesin interfaceWithPropertiesBuilder<C extends Content<D>>
-
-