@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConfirmationDialogIF"}) @Immutable public final class ConfirmationDialog extends Object implements ConfirmationDialogIF
ConfirmationDialogIF.
Use the builder to create immutable instances:
ConfirmationDialog.builder().
Use the static factory method to create immutable instances:
ConfirmationDialog.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfirmationDialog.Builder
Builds instances of type
ConfirmationDialog. |
| Modifier and Type | Method and Description |
|---|---|
static ConfirmationDialog.Builder |
builder()
Creates a builder for
ConfirmationDialog. |
static ConfirmationDialog |
copyOf(ConfirmationDialogIF instance)
Creates an immutable copy of a
ConfirmationDialogIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ConfirmationDialog that have equal attribute values. |
Text |
getConfirmButtonText() |
Text |
getDenyButtonText() |
Text |
getText() |
Text |
getTitle() |
int |
hashCode()
Computes a hash code from attributes:
title, text, confirmButtonText, denyButtonText. |
static ConfirmationDialog |
of(Text title,
Text text,
Text confirmButtonText,
Text denyButtonText)
Construct a new immutable
ConfirmationDialog instance. |
String |
toString()
Prints the immutable value
ConfirmationDialog with attribute values. |
ConfirmationDialog |
withConfirmButtonText(Text confirmButtonText)
Copy the current immutable object by setting a value for the
confirmButtonText attribute. |
ConfirmationDialog |
withDenyButtonText(Text denyButtonText)
Copy the current immutable object by setting a value for the
denyButtonText attribute. |
ConfirmationDialog |
withText(Text text)
Copy the current immutable object by setting a value for the
text attribute. |
ConfirmationDialog |
withTitle(Text title)
Copy the current immutable object by setting a value for the
title attribute. |
public Text getTitle()
getTitle in interface ConfirmationDialogIFtitle attributepublic Text getText()
getText in interface ConfirmationDialogIFtext attributepublic Text getConfirmButtonText()
getConfirmButtonText in interface ConfirmationDialogIFconfirmButtonText attributepublic Text getDenyButtonText()
getDenyButtonText in interface ConfirmationDialogIFdenyButtonText attributepublic final ConfirmationDialog withTitle(Text title)
title attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.title - A new value for titlethis objectpublic final ConfirmationDialog withText(Text text)
text attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.text - A new value for textthis objectpublic final ConfirmationDialog withConfirmButtonText(Text confirmButtonText)
confirmButtonText attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.confirmButtonText - A new value for confirmButtonTextthis objectpublic final ConfirmationDialog withDenyButtonText(Text denyButtonText)
denyButtonText attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.denyButtonText - A new value for denyButtonTextthis objectpublic boolean equals(@Nullable Object another)
ConfirmationDialog that have equal attribute values.public int hashCode()
title, text, confirmButtonText, denyButtonText.public String toString()
ConfirmationDialog with attribute values.public static ConfirmationDialog of(Text title, Text text, Text confirmButtonText, Text denyButtonText)
ConfirmationDialog instance.title - The value for the title attributetext - The value for the text attributeconfirmButtonText - The value for the confirmButtonText attributedenyButtonText - The value for the denyButtonText attributepublic static ConfirmationDialog copyOf(ConfirmationDialogIF instance)
ConfirmationDialogIF 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 ConfirmationDialog.Builder builder()
ConfirmationDialog.Copyright © 2019. All rights reserved.