public final class ImmutableSupportConfig extends Object implements SupportConfig
SupportConfig.
Use the builder to create immutable instances:
ImmutableSupportConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSupportConfig.Builder
Builds instances of type
ImmutableSupportConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSupportConfig.Builder |
builder()
Creates a builder for
ImmutableSupportConfig. |
static ImmutableSupportConfig |
copyOf(SupportConfig instance)
Creates an immutable copy of a
SupportConfig value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSupportConfig that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
name, supportUrl, messageOnException. |
BiFunction<Class<?>,Exception,String> |
messageOnException()
Deprecated.
|
String |
name() |
String |
supportUrl() |
String |
toString()
Prints the immutable value
SupportConfig with attribute values. |
ImmutableSupportConfig |
withMessageOnException(BiFunction<Class<?>,Exception,String> value)
Deprecated.
|
ImmutableSupportConfig |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableSupportConfig |
withSupportUrl(String value)
Copy the current immutable object by setting a value for the
supportUrl attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgenericpublic String name()
name in interface SupportConfigname attributepublic String supportUrl()
supportUrl in interface SupportConfigsupportUrl attribute@Deprecated public BiFunction<Class<?>,Exception,String> messageOnException()
messageOnException in interface SupportConfigmessageOnException attributepublic final ImmutableSupportConfig withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutableSupportConfig withSupportUrl(String value)
supportUrl attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for supportUrlthis object@Deprecated public final ImmutableSupportConfig withMessageOnException(BiFunction<Class<?>,Exception,String> value)
messageOnException attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for messageOnExceptionthis objectpublic boolean equals(Object another)
ImmutableSupportConfig that have equal attribute values.public int hashCode()
name, supportUrl, messageOnException.public String toString()
SupportConfig with attribute values.public static ImmutableSupportConfig copyOf(SupportConfig instance)
SupportConfig 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 ImmutableSupportConfig.Builder builder()
ImmutableSupportConfig.
ImmutableSupportConfig.builder()
.name(String) // required name
.supportUrl(String) // required supportUrl
.messageOnException(function.BiFunction<Class<?>, Exception, String>) // required messageOnException
.build();
builder in interface SupportConfigCopyright © 2022. All rights reserved.