public final class ComponentDataBuilder extends GenericDataBuilder<T,K>
ComponentData object.
For more specific data builders please see:
| Modifier and Type | Method and Description |
|---|---|
@NotNull ComponentData |
build()
Build the data.
|
T |
withDescription(@NotNull Supplier<String> supplier)
Set the supplier that supplies the component's description.
|
T |
withLastModifiedDate(@NotNull Supplier<Date> supplier)
Set the supplier that supplies the component's last modified date.
|
T |
withLinkUrl(@NotNull Supplier<String> supplier)
Sets the supplier that supplies the component's link URL.
|
T |
withParentId(@NotNull Supplier<String> supplier)
Set the supplier that supplies the component's parent ID.
|
T |
withText(@NotNull Supplier<String> supplier)
Set the supplier that supplies the component's text.
|
T |
withTitle(@NotNull Supplier<String> supplier)
Set the supplier that supplies the component's title.
|
T |
withType(@NotNull Supplier<String> supplier)
Set the supplier that supplies the component's type.
|
withId@NotNull public @NotNull ComponentData build()
GenericDataBuilderbuild in class GenericDataBuilder<ComponentDataBuilder,ComponentData>@NotNull
public T withType(@NotNull
@NotNull Supplier<String> supplier)
supplier - The type value supplier.ComponentData.getType()@NotNull
public T withLastModifiedDate(@NotNull
@NotNull Supplier<Date> supplier)
supplier - The last modified date value supplier.ComponentData.getLastModifiedDate()@NotNull
public T withParentId(@NotNull
@NotNull Supplier<String> supplier)
supplier - The parent ID value supplier.ComponentData.getParentId()@NotNull
public T withTitle(@NotNull
@NotNull Supplier<String> supplier)
supplier - The title value supplier.ComponentData.getTitle()@NotNull
public T withDescription(@NotNull
@NotNull Supplier<String> supplier)
supplier - The description value supplier.ComponentData.getDescription()@NotNull
public T withText(@NotNull
@NotNull Supplier<String> supplier)
supplier - The text value supplier.ComponentData.getText()@NotNull
public T withLinkUrl(@NotNull
@NotNull Supplier<String> supplier)
supplier - The link URL value supplier.ComponentData.getLinkUrl()Copyright © 2020. All rights reserved.