@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","OverflowMenuIF"}) @Immutable public final class OverflowMenu extends Object implements OverflowMenuIF
OverflowMenuIF.
Use the builder to create immutable instances:
OverflowMenu.builder().
Use the static factory method to create immutable instances:
OverflowMenu.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
OverflowMenu.Builder
Builds instances of type
OverflowMenu. |
TYPE| Modifier and Type | Method and Description |
|---|---|
static OverflowMenu.Builder |
builder()
Creates a builder for
OverflowMenu. |
static OverflowMenu |
copyOf(OverflowMenuIF instance)
Creates an immutable copy of a
OverflowMenuIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
OverflowMenu that have equal attribute values. |
String |
getActionId() |
Optional<ConfirmationDialog> |
getConfirmationDialog() |
List<Option> |
getOptions() |
String |
getType() |
int |
hashCode()
Computes a hash code from attributes:
type, actionId, options, confirmationDialog. |
static OverflowMenu |
of(String actionId,
Iterable<? extends Option> options)
Construct a new immutable
OverflowMenu instance. |
static OverflowMenu |
of(String actionId,
List<Option> options)
Construct a new immutable
OverflowMenu instance. |
String |
toString()
Prints the immutable value
OverflowMenu with attribute values. |
OverflowMenu |
withActionId(String actionId)
Copy the current immutable object by setting a value for the
actionId attribute. |
OverflowMenu |
withConfirmationDialog(ConfirmationDialog value)
Copy the current immutable object by setting a present value for the optional
confirmationDialog attribute. |
OverflowMenu |
withConfirmationDialog(Optional<ConfirmationDialog> optional)
Copy the current immutable object by setting an optional value for the
confirmationDialog attribute. |
OverflowMenu |
withOptions(Iterable<? extends Option> elements)
Copy the current immutable object with elements that replace the content of
options. |
OverflowMenu |
withOptions(Option... elements)
Copy the current immutable object with elements that replace the content of
options. |
public String getType()
getType in interface BlockElementgetType in interface OverflowMenuIFtype attributepublic String getActionId()
getActionId in interface OverflowMenuIFactionId attributepublic List<Option> getOptions()
getOptions in interface OverflowMenuIFoptions attributepublic Optional<ConfirmationDialog> getConfirmationDialog()
getConfirmationDialog in interface OverflowMenuIFconfirmationDialog attributepublic final OverflowMenu 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 OverflowMenu withOptions(Option... elements)
options.elements - The elements to setthis objectpublic final OverflowMenu withOptions(Iterable<? extends Option> elements)
options.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of options elements to setthis objectpublic final OverflowMenu withConfirmationDialog(@Nullable ConfirmationDialog value)
confirmationDialog attribute.value - The value for confirmationDialog, null is accepted as java.util.Optional.empty()this objectpublic final OverflowMenu 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)
OverflowMenu that have equal attribute values.public int hashCode()
type, actionId, options, confirmationDialog.public String toString()
OverflowMenu with attribute values.public static OverflowMenu of(String actionId, List<Option> options)
OverflowMenu instance.actionId - The value for the actionId attributeoptions - The value for the options attributepublic static OverflowMenu of(String actionId, Iterable<? extends Option> options)
OverflowMenu instance.actionId - The value for the actionId attributeoptions - The value for the options attributepublic static OverflowMenu copyOf(OverflowMenuIF instance)
OverflowMenuIF 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 OverflowMenu.Builder builder()
OverflowMenu.Copyright © 2019. All rights reserved.