@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","SlackFormOptionIF"}) @Immutable public final class SlackFormOption extends Object implements SlackFormOptionIF
SlackFormOptionIF.
Use the builder to create immutable instances:
SlackFormOption.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackFormOption.Builder
Builds instances of type
SlackFormOption. |
| Modifier and Type | Method and Description |
|---|---|
static SlackFormOption.Builder |
builder()
Creates a builder for
SlackFormOption. |
static SlackFormOption |
copyOf(SlackFormOptionIF instance)
Creates an immutable copy of a
SlackFormOptionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
SlackFormOption that have equal attribute values. |
String |
getLabel() |
String |
getValue() |
int |
hashCode()
Computes a hash code from attributes:
label, value. |
String |
toString()
Prints the immutable value
SlackFormOption with attribute values. |
SlackFormOption |
withLabel(String label)
Copy the current immutable object by setting a value for the
label attribute. |
SlackFormOption |
withValue(String value)
Copy the current immutable object by setting a value for the
value attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitvalidatepublic String getLabel()
getLabel in interface SlackFormOptionIFlabel attributepublic String getValue()
getValue in interface SlackFormOptionIFvalue attributepublic final SlackFormOption withLabel(String label)
label attribute.
An equals check used to prevent copying of the same value by returning this.label - A new value for labelthis objectpublic final SlackFormOption withValue(String value)
value attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuethis objectpublic boolean equals(@Nullable Object another)
SlackFormOption that have equal attribute values.public int hashCode()
label, value.public String toString()
SlackFormOption with attribute values.public static SlackFormOption copyOf(SlackFormOptionIF instance)
SlackFormOptionIF 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 SlackFormOption.Builder builder()
SlackFormOption.Copyright © 2019. All rights reserved.