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