@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","BlockElementActionIF"}) @Immutable public final class BlockElementAction extends Object implements BlockElementActionIF
BlockElementActionIF.
Use the builder to create immutable instances:
BlockElementAction.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockElementAction.Builder
Builds instances of type
BlockElementAction. |
| Modifier and Type | Method and Description |
|---|---|
static BlockElementAction.Builder |
builder()
Creates a builder for
BlockElementAction. |
static BlockElementAction |
copyOf(BlockElementActionIF instance)
Creates an immutable copy of a
BlockElementActionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
BlockElementAction that have equal attribute values. |
String |
getActionId() |
Optional<String> |
getActionTs() |
String |
getBlockId() |
BlockElement |
getElement() |
Optional<LocalDate> |
getSelectedDate() |
Optional<String> |
getSelectedValue() |
int |
hashCode()
Computes a hash code from attributes:
blockId, actionId, element, selectedValue, selectedDate, actionTs. |
String |
toString()
Prints the immutable value
BlockElementAction with attribute values. |
BlockElementAction |
withActionId(String actionId)
Copy the current immutable object by setting a value for the
actionId attribute. |
BlockElementAction |
withActionTs(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
actionTs attribute. |
BlockElementAction |
withActionTs(String value)
Copy the current immutable object by setting a present value for the optional
actionTs attribute. |
BlockElementAction |
withBlockId(String blockId)
Copy the current immutable object by setting a value for the
blockId attribute. |
BlockElementAction |
withElement(BlockElement element)
Copy the current immutable object by setting a value for the
element attribute. |
BlockElementAction |
withSelectedDate(LocalDate value)
Copy the current immutable object by setting a present value for the optional
selectedDate attribute. |
BlockElementAction |
withSelectedDate(Optional<LocalDate> optional)
Copy the current immutable object by setting an optional value for the
selectedDate attribute. |
BlockElementAction |
withSelectedValue(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
selectedValue attribute. |
BlockElementAction |
withSelectedValue(String value)
Copy the current immutable object by setting a present value for the optional
selectedValue attribute. |
public String getBlockId()
getBlockId in interface BlockElementActionIFblockId attributepublic String getActionId()
getActionId in interface BlockElementActionIFactionId attributepublic BlockElement getElement()
getElement in interface BlockElementActionIFelement attributepublic Optional<String> getSelectedValue()
getSelectedValue in interface BlockElementActionIFselectedValue attributepublic Optional<LocalDate> getSelectedDate()
getSelectedDate in interface BlockElementActionIFselectedDate attributepublic Optional<String> getActionTs()
getActionTs in interface BlockElementActionIFactionTs attributepublic final BlockElementAction withBlockId(String blockId)
blockId attribute.
An equals check used to prevent copying of the same value by returning this.blockId - A new value for blockIdthis objectpublic final BlockElementAction 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 BlockElementAction withElement(BlockElement element)
element attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.element - A new value for elementthis objectpublic final BlockElementAction withSelectedValue(@Nullable String value)
selectedValue attribute.value - The value for selectedValue, null is accepted as java.util.Optional.empty()this objectpublic final BlockElementAction withSelectedValue(Optional<String> optional)
selectedValue attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for selectedValuethis objectpublic final BlockElementAction withSelectedDate(@Nullable LocalDate value)
selectedDate attribute.value - The value for selectedDate, null is accepted as java.util.Optional.empty()this objectpublic final BlockElementAction 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 BlockElementAction withActionTs(@Nullable String value)
actionTs attribute.value - The value for actionTs, null is accepted as java.util.Optional.empty()this objectpublic final BlockElementAction withActionTs(Optional<String> optional)
actionTs attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for actionTsthis objectpublic boolean equals(@Nullable Object another)
BlockElementAction that have equal attribute values.public int hashCode()
blockId, actionId, element, selectedValue, selectedDate, actionTs.public String toString()
BlockElementAction with attribute values.public static BlockElementAction copyOf(BlockElementActionIF instance)
BlockElementActionIF 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 BlockElementAction.Builder builder()
BlockElementAction.Copyright © 2020. All rights reserved.