@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableHostnamePortProxyFactory extends ProxyFactory.HostnamePortProxyFactory
ProxyFactory.HostnamePortProxyFactory.
Use the builder to create immutable instances:
ImmutableHostnamePortProxyFactory.builder().
Use the static factory method to create immutable instances:
ImmutableHostnamePortProxyFactory.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableHostnamePortProxyFactory.Builder
Builds instances of type
ImmutableHostnamePortProxyFactory. |
ProxyFactory.HostnamePortProxyFactory| Modifier and Type | Method and Description |
|---|---|
static ImmutableHostnamePortProxyFactory.Builder |
builder()
Creates a builder for
ImmutableHostnamePortProxyFactory. |
static ImmutableHostnamePortProxyFactory |
copyOf(ProxyFactory.HostnamePortProxyFactory instance)
Creates an immutable copy of a
ProxyFactory.HostnamePortProxyFactory value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableHostnamePortProxyFactory that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
hostName, port. |
String |
hostName() |
static ImmutableHostnamePortProxyFactory |
of(String hostName,
int port)
Construct a new immutable
HostnamePortProxyFactory instance. |
int |
port() |
String |
toString()
Prints the immutable value
HostnamePortProxyFactory with attribute values. |
ImmutableHostnamePortProxyFactory |
withHostName(String value)
Copy the current immutable object by setting a value for the
hostName attribute. |
ImmutableHostnamePortProxyFactory |
withPort(int value)
Copy the current immutable object by setting a value for the
port attribute. |
createpublic String hostName()
hostName in class ProxyFactory.HostnamePortProxyFactoryhostName attributepublic int port()
port in class ProxyFactory.HostnamePortProxyFactoryport attributepublic final ImmutableHostnamePortProxyFactory withHostName(String value)
hostName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for hostNamethis objectpublic final ImmutableHostnamePortProxyFactory withPort(int value)
port attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for portthis objectpublic boolean equals(Object another)
ImmutableHostnamePortProxyFactory that have equal attribute values.public int hashCode()
hostName, port.public String toString()
HostnamePortProxyFactory with attribute values.public static ImmutableHostnamePortProxyFactory of(String hostName, int port)
HostnamePortProxyFactory instance.hostName - The value for the hostName attributeport - The value for the port attributepublic static ImmutableHostnamePortProxyFactory copyOf(ProxyFactory.HostnamePortProxyFactory instance)
ProxyFactory.HostnamePortProxyFactory 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 ImmutableHostnamePortProxyFactory.Builder builder()
ImmutableHostnamePortProxyFactory.
ImmutableHostnamePortProxyFactory.builder()
.hostName(String) // required hostName
.port(int) // required port
.build();
Copyright © 2025. All rights reserved.