@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","DatePickerIF"}) @Immutable public final class DatePicker extends Object implements DatePickerIF
DatePickerIF.
Use the builder to create immutable instances:
DatePicker.builder().
Use the static factory method to create immutable instances:
DatePicker.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
DatePicker.Builder
Builds instances of type
DatePicker. |
TYPE| Modifier and Type | Method and Description |
|---|---|
static DatePicker.Builder |
builder()
Creates a builder for
DatePicker. |
static DatePicker |
copyOf(DatePickerIF instance)
Creates an immutable copy of a
DatePickerIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
DatePicker that have equal attribute values. |
String |
getActionId() |
Optional<ConfirmationDialog> |
getConfirmationDialog() |
Optional<LocalDate> |
getInitialDate() |
Optional<Text> |
getPlaceholder() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, actionId, placeholder, initialDate, confirmationDialog. |
static DatePicker |
of(String actionId)
Construct a new immutable
DatePicker instance. |
String |
toString()
Prints the immutable value
DatePicker with attribute values. |
DatePicker |
withActionId(String actionId)
Copy the current immutable object by setting a value for the
actionId attribute. |
DatePicker |
withConfirmationDialog(ConfirmationDialog value)
Copy the current immutable object by setting a present value for the optional
confirmationDialog attribute. |
DatePicker |
withConfirmationDialog(Optional<ConfirmationDialog> optional)
Copy the current immutable object by setting an optional value for the
confirmationDialog attribute. |
DatePicker |
withInitialDate(LocalDate value)
Copy the current immutable object by setting a present value for the optional
initialDate attribute. |
DatePicker |
withInitialDate(Optional<LocalDate> optional)
Copy the current immutable object by setting an optional value for the
initialDate attribute. |
DatePicker |
withPlaceholder(Optional<Text> optional)
Copy the current immutable object by setting an optional value for the
placeholder attribute. |
DatePicker |
withPlaceholder(Text value)
Copy the current immutable object by setting a present value for the optional
placeholder attribute. |
public String getType()
getType in interface BlockElementgetType in interface DatePickerIFtype attributepublic String getActionId()
getActionId in interface DatePickerIFactionId attributepublic Optional<Text> getPlaceholder()
getPlaceholder in interface DatePickerIFplaceholder attributepublic Optional<LocalDate> getInitialDate()
getInitialDate in interface DatePickerIFinitialDate attributepublic Optional<ConfirmationDialog> getConfirmationDialog()
getConfirmationDialog in interface DatePickerIFconfirmationDialog attributepublic final DatePicker withActionId(String actionId)
actionId attribute.
An equals check used to prevent copying of the same value by returning this.actionId - A new value for actionIdthis objectpublic final DatePicker withPlaceholder(@Nullable Text value)
placeholder attribute.value - The value for placeholder, null is accepted as java.util.Optional.empty()this objectpublic final DatePicker withPlaceholder(Optional<Text> optional)
placeholder attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for placeholderthis objectpublic final DatePicker withInitialDate(@Nullable LocalDate value)
initialDate attribute.value - The value for initialDate, null is accepted as java.util.Optional.empty()this objectpublic final DatePicker withInitialDate(Optional<LocalDate> optional)
initialDate attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for initialDatethis objectpublic final DatePicker withConfirmationDialog(@Nullable ConfirmationDialog value)
confirmationDialog attribute.value - The value for confirmationDialog, null is accepted as java.util.Optional.empty()this objectpublic final DatePicker withConfirmationDialog(Optional<ConfirmationDialog> optional)
confirmationDialog attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for confirmationDialogthis objectpublic boolean equals(@Nullable Object another)
DatePicker that have equal attribute values.public int hashCode()
type, actionId, placeholder, initialDate, confirmationDialog.public String toString()
DatePicker with attribute values.public static DatePicker of(String actionId)
DatePicker instance.actionId - The value for the actionId attributepublic static DatePicker copyOf(DatePickerIF instance)
DatePickerIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static DatePicker.Builder builder()
DatePicker.Copyright © 2019. All rights reserved.