@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePorts extends Ports
Ports.
Use the builder to create immutable instances:
ImmutablePorts.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePorts.Builder
Builds instances of type
ImmutablePorts. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePorts.Builder |
builder()
Creates a builder for
ImmutablePorts. |
static ImmutablePorts |
copyOf(Ports instance)
Creates an immutable copy of a
Ports value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePorts that have equal attribute values. |
int |
getDns() |
int |
getHttp() |
int |
getRpc() |
int |
getSerfLan() |
int |
getSerfWan() |
int |
getServer() |
int |
hashCode()
Computes a hash code from attributes:
dns, http, rpc, serfLan, serfWan, server. |
String |
toString()
Prints the immutable value
Ports with attribute values. |
ImmutablePorts |
withDns(int value)
Copy the current immutable object by setting a value for the
dns attribute. |
ImmutablePorts |
withHttp(int value)
Copy the current immutable object by setting a value for the
http attribute. |
ImmutablePorts |
withRpc(int value)
Copy the current immutable object by setting a value for the
rpc attribute. |
ImmutablePorts |
withSerfLan(int value)
Copy the current immutable object by setting a value for the
serfLan attribute. |
ImmutablePorts |
withSerfWan(int value)
Copy the current immutable object by setting a value for the
serfWan attribute. |
ImmutablePorts |
withServer(int value)
Copy the current immutable object by setting a value for the
server attribute. |
public int getDns()
public int getHttp()
public int getRpc()
public int getSerfLan()
getSerfLan in class PortsserfLan attributepublic int getSerfWan()
getSerfWan in class PortsserfWan attributepublic int getServer()
public final ImmutablePorts withDns(int value)
dns attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for dnsthis objectpublic final ImmutablePorts withHttp(int value)
http attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for httpthis objectpublic final ImmutablePorts withRpc(int value)
rpc attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for rpcthis objectpublic final ImmutablePorts withSerfLan(int value)
serfLan attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for serfLanthis objectpublic final ImmutablePorts withSerfWan(int value)
serfWan attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for serfWanthis objectpublic final ImmutablePorts withServer(int value)
server attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for serverthis objectpublic boolean equals(@Nullable Object another)
ImmutablePorts that have equal attribute values.public int hashCode()
dns, http, rpc, serfLan, serfWan, server.public String toString()
Ports with attribute values.public static ImmutablePorts copyOf(Ports instance)
Ports 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 ImmutablePorts.Builder builder()
ImmutablePorts.
ImmutablePorts.builder()
.dns(int) // required dns
.http(int) // required http
.rpc(int) // required rpc
.serfLan(int) // required serfLan
.serfWan(int) // required serfWan
.server(int) // required server
.build();
Copyright © 2019. All rights reserved.