Class ViewDatePicker
java.lang.Object
com.hubspot.slack.client.models.interaction.views.ViewDatePicker
- All Implemented Interfaces:
ViewDatePickerIF,ViewInput
@Generated(from="ViewDatePickerIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ViewDatePicker
extends Object
implements ViewDatePickerIF
Immutable implementation of
ViewDatePickerIF.
Use the builder to create immutable instances:
ViewDatePicker.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewDatePicker.Builderbuilder()Creates a builder forViewDatePicker.static ViewDatePickercopyOf(ViewDatePickerIF instance) Creates an immutable copy of aViewDatePickerIFvalue.booleanThis instance is equal to all instances ofViewDatePickerthat have equal attribute values.getType()inthashCode()Computes a hash code from attributes:type,stringValue,selectedDate.toString()Prints the immutable valueViewDatePickerwith attribute values.final ViewDatePickerwithSelectedDate(LocalDate value) Copy the current immutable object by setting a present value for the optionalselectedDateattribute.final ViewDatePickerwithSelectedDate(Optional<? extends LocalDate> optional) Copy the current immutable object by setting an optional value for theselectedDateattribute.final ViewDatePickerwithStringValue(String value) Copy the current immutable object by setting a present value for the optionalstringValueattribute.final ViewDatePickerwithStringValue(Optional<String> optional) Copy the current immutable object by setting an optional value for thestringValueattribute.final ViewDatePickerwithType(ViewInputType value) Copy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getType
-
getStringValue
- Specified by:
getStringValuein interfaceViewInput- Returns:
- The value of the
stringValueattribute
-
getSelectedDate
- Specified by:
getSelectedDatein interfaceViewDatePickerIF- Returns:
- The value of the
selectedDateattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withStringValue
Copy the current immutable object by setting a present value for the optionalstringValueattribute.- Parameters:
value- The value for stringValue,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStringValue
Copy the current immutable object by setting an optional value for thestringValueattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for stringValue- Returns:
- A modified copy or
thisif not changed
-
withSelectedDate
Copy the current immutable object by setting a present value for the optionalselectedDateattribute.- Parameters:
value- The value for selectedDate,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withSelectedDate
Copy the current immutable object by setting an optional value for theselectedDateattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for selectedDate- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofViewDatePickerthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,stringValue,selectedDate. -
toString
Prints the immutable valueViewDatePickerwith attribute values. -
copyOf
Creates an immutable copy of aViewDatePickerIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable ViewDatePicker instance
-
builder
Creates a builder forViewDatePicker.ViewDatePicker.builder() .setType(com.hubspot.slack.client.models.interaction.views.ViewInputType) // requiredtype.setStringValue(Optional<String>) // optionalstringValue.setSelectedDate(Optional<java.time.LocalDate>) // optionalselectedDate.build();- Returns:
- A new ViewDatePicker builder
-