@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ServerConfiguration"}) @Immutable @CheckReturnValue public final class ImmutableServerConfiguration extends ServerConfiguration
ServerConfiguration.
Use the builder to create immutable instances:
ImmutableServerConfiguration.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableServerConfiguration.Builder
Builds instances of type
ImmutableServerConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableServerConfiguration.Builder |
builder()
Creates a builder for
ImmutableServerConfiguration. |
static ImmutableServerConfiguration |
copyOf(ServerConfiguration instance)
Creates an immutable copy of a
ServerConfiguration value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableServerConfiguration that have equal attribute values. |
String |
getServerHostname() |
int |
getServerPort() |
String |
getUriScheme() |
int |
hashCode()
Computes a hash code from attributes:
uriScheme, serverHostname, serverPort. |
String |
toString()
Prints the immutable value
ServerConfiguration with attribute values. |
ImmutableServerConfiguration |
withServerHostname(String value)
Copy the current immutable object by setting a value for the
serverHostname attribute. |
ImmutableServerConfiguration |
withServerPort(int value)
Copy the current immutable object by setting a value for the
serverPort attribute. |
ImmutableServerConfiguration |
withUriScheme(String value)
Copy the current immutable object by setting a value for the
uriScheme attribute. |
getServerURLpublic String getUriScheme()
getUriScheme in class ServerConfigurationuriScheme attributepublic String getServerHostname()
getServerHostname in class ServerConfigurationserverHostname attributepublic int getServerPort()
getServerPort in class ServerConfigurationserverPort attributepublic final ImmutableServerConfiguration withUriScheme(String value)
uriScheme attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for uriSchemethis objectpublic final ImmutableServerConfiguration withServerHostname(String value)
serverHostname attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for serverHostnamethis objectpublic final ImmutableServerConfiguration withServerPort(int value)
serverPort attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for serverPortthis objectpublic boolean equals(@Nullable Object another)
ImmutableServerConfiguration that have equal attribute values.public int hashCode()
uriScheme, serverHostname, serverPort.public String toString()
ServerConfiguration with attribute values.public static ImmutableServerConfiguration copyOf(ServerConfiguration instance)
ServerConfiguration 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 ImmutableServerConfiguration.Builder builder()
ImmutableServerConfiguration.Copyright © 2010–2018 Justin Searls. All rights reserved.