public final class ContainerDataBuilder extends GenericDataBuilder<T,K>
ContainerData object.| Modifier and Type | Method and Description |
|---|---|
@NotNull ContainerData |
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.
|
@NotNull ContainerDataBuilder |
withShownItems(@NotNull Supplier<String[]> supplier)
Set the supplier that supplies the array of shown items.
|
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 ContainerDataBuilder withShownItems(@NotNull @NotNull Supplier<String[]> supplier)
supplier - The shown items value supplier.ContainerDataBuilder.ContainerData.getShownItems()@NotNull public @NotNull ContainerData build()
GenericDataBuilderbuild in class GenericDataBuilder<ContainerDataBuilder,ContainerData>@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.