@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ViewRadioButtonGroupIF"}) @Immutable public final class ViewRadioButtonGroup extends Object implements ViewRadioButtonGroupIF
ViewRadioButtonGroupIF.
Use the builder to create immutable instances:
ViewRadioButtonGroup.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewRadioButtonGroup.Builder
Builds instances of type
ViewRadioButtonGroup. |
| Modifier and Type | Method and Description |
|---|---|
static ViewRadioButtonGroup.Builder |
builder()
Creates a builder for
ViewRadioButtonGroup. |
static ViewRadioButtonGroup |
copyOf(ViewRadioButtonGroupIF instance)
Creates an immutable copy of a
ViewRadioButtonGroupIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ViewRadioButtonGroup that have equal attribute values. |
Optional<Option> |
getSelectedOption() |
ViewInputType |
getType() |
int |
hashCode()
Computes a hash code from attributes:
selectedOption, type. |
String |
toString()
Prints the immutable value
ViewRadioButtonGroup with attribute values. |
ViewRadioButtonGroup |
withSelectedOption(Option value)
Copy the current immutable object by setting a present value for the optional
selectedOption attribute. |
ViewRadioButtonGroup |
withSelectedOption(Optional<Option> optional)
Copy the current immutable object by setting an optional value for the
selectedOption attribute. |
ViewRadioButtonGroup |
withType(ViewInputType type)
Copy the current immutable object by setting a value for the
type attribute. |
public Optional<Option> getSelectedOption()
getSelectedOption in interface ViewRadioButtonGroupIFselectedOption attributepublic ViewInputType getType()
public final ViewRadioButtonGroup withSelectedOption(@Nullable Option value)
selectedOption attribute.value - The value for selectedOption, null is accepted as java.util.Optional.empty()this objectpublic final ViewRadioButtonGroup withSelectedOption(Optional<Option> optional)
selectedOption 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 selectedOptionthis objectpublic final ViewRadioButtonGroup 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)
ViewRadioButtonGroup that have equal attribute values.public int hashCode()
selectedOption, type.public String toString()
ViewRadioButtonGroup with attribute values.public static ViewRadioButtonGroup copyOf(ViewRadioButtonGroupIF instance)
ViewRadioButtonGroupIF 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 ViewRadioButtonGroup.Builder builder()
ViewRadioButtonGroup.Copyright © 2020. All rights reserved.