@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ConfirmIF"}) @Immutable public final class Confirm extends Object implements ConfirmIF
ConfirmIF.
Use the builder to create immutable instances:
Confirm.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Confirm.Builder
Builds instances of type
Confirm. |
| Modifier and Type | Method and Description |
|---|---|
static Confirm.Builder |
builder()
Creates a builder for
Confirm. |
static Confirm |
copyOf(ConfirmIF instance)
Creates an immutable copy of a
ConfirmIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Confirm that have equal attribute values. |
String |
getDismissText() |
String |
getOkText() |
String |
getText() |
String |
getTitle() |
int |
hashCode()
Computes a hash code from attributes:
title, text, okText, dismissText. |
String |
toString()
Prints the immutable value
Confirm with attribute values. |
Confirm |
withDismissText(String dismissText)
Copy the current immutable object by setting a value for the
dismissText attribute. |
Confirm |
withOkText(String okText)
Copy the current immutable object by setting a value for the
okText attribute. |
Confirm |
withText(String text)
Copy the current immutable object by setting a value for the
text attribute. |
Confirm |
withTitle(String title)
Copy the current immutable object by setting a value for the
title attribute. |
public String getTitle()
public String getText()
public String getOkText()
public String getDismissText()
getDismissText in interface ConfirmIFdismissText attributepublic final Confirm withTitle(String title)
title attribute.
An equals check used to prevent copying of the same value by returning this.title - A new value for titlethis objectpublic final Confirm withText(String text)
text attribute.
An equals check used to prevent copying of the same value by returning this.text - A new value for textthis objectpublic final Confirm withOkText(String okText)
okText attribute.
An equals check used to prevent copying of the same value by returning this.okText - A new value for okTextthis objectpublic final Confirm withDismissText(String dismissText)
dismissText attribute.
An equals check used to prevent copying of the same value by returning this.dismissText - A new value for dismissTextthis objectpublic boolean equals(@Nullable Object another)
Confirm that have equal attribute values.public int hashCode()
title, text, okText, dismissText.public String toString()
Confirm with attribute values.public static Confirm copyOf(ConfirmIF instance)
ConfirmIF 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 Confirm.Builder builder()
Confirm.Copyright © 2019. All rights reserved.