@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ViewDatePickerIF"}) @Immutable public final class ViewDatePicker extends Object implements ViewDatePickerIF
ViewDatePickerIF.
Use the builder to create immutable instances:
ViewDatePicker.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewDatePicker.Builder
Builds instances of type
ViewDatePicker. |
| Modifier and Type | Method and Description |
|---|---|
static ViewDatePicker.Builder |
builder()
Creates a builder for
ViewDatePicker. |
static ViewDatePicker |
copyOf(ViewDatePickerIF instance)
Creates an immutable copy of a
ViewDatePickerIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ViewDatePicker that have equal attribute values. |
Optional<LocalDate> |
getSelectedDate() |
ViewInputType |
getType() |
int |
hashCode()
Computes a hash code from attributes:
selectedDate, type. |
String |
toString()
Prints the immutable value
ViewDatePicker with attribute values. |
ViewDatePicker |
withSelectedDate(LocalDate value)
Copy the current immutable object by setting a present value for the optional
selectedDate attribute. |
ViewDatePicker |
withSelectedDate(Optional<LocalDate> optional)
Copy the current immutable object by setting an optional value for the
selectedDate attribute. |
ViewDatePicker |
withType(ViewInputType type)
Copy the current immutable object by setting a value for the
type attribute. |
public Optional<LocalDate> getSelectedDate()
getSelectedDate in interface ViewDatePickerIFselectedDate attributepublic ViewInputType getType()
public final ViewDatePicker withSelectedDate(@Nullable LocalDate value)
selectedDate attribute.value - The value for selectedDate, null is accepted as java.util.Optional.empty()this objectpublic final ViewDatePicker withSelectedDate(Optional<LocalDate> optional)
selectedDate 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 selectedDatethis objectpublic final ViewDatePicker withType(ViewInputType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic boolean equals(@Nullable Object another)
ViewDatePicker that have equal attribute values.public int hashCode()
selectedDate, type.public String toString()
ViewDatePicker with attribute values.public static ViewDatePicker copyOf(ViewDatePickerIF instance)
ViewDatePickerIF 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 ViewDatePicker.Builder builder()
ViewDatePicker.Copyright © 2020. All rights reserved.