@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableIpQualifier extends IpQualifier
IpQualifier
.
Use the builder to create immutable instances:
ImmutableIpQualifier.builder()
.
Use the static factory method to create immutable instances:
ImmutableIpQualifier.of()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableIpQualifier.Builder
Builds instances of type
ImmutableIpQualifier . |
Modifier and Type | Method and Description |
---|---|
static ImmutableIpQualifier.Builder |
builder()
Creates a builder for
ImmutableIpQualifier . |
static ImmutableIpQualifier |
copyOf(IpQualifier instance)
Creates an immutable copy of a
IpQualifier value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableIpQualifier that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
networkName , type . |
Optional<String> |
networkName()
Optional network name.
|
static ImmutableIpQualifier |
of(Optional<String> networkName)
Construct a new immutable
IpQualifier instance. |
String |
toString()
Prints the immutable value
IpQualifier with attribute values. |
QualifierType |
type()
The qualifier type.
|
ImmutableIpQualifier |
withNetworkName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
networkName attribute. |
ImmutableIpQualifier |
withNetworkName(String value)
Copy the current immutable object by setting a present value for the optional
networkName attribute. |
public Optional<String> networkName()
networkName
in class IpQualifier
public QualifierType type()
Qualifier
type
in class IpQualifier
type
attributepublic final ImmutableIpQualifier withNetworkName(String value)
networkName
attribute.value
- The value for networkNamethis
objectpublic final ImmutableIpQualifier withNetworkName(Optional<String> optional)
networkName
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for networkNamethis
objectpublic boolean equals(@Nullable Object another)
ImmutableIpQualifier
that have equal attribute values.public int hashCode()
networkName
, type
.public String toString()
IpQualifier
with attribute values.public static ImmutableIpQualifier of(Optional<String> networkName)
IpQualifier
instance.networkName
- The value for the networkName
attributepublic static ImmutableIpQualifier copyOf(IpQualifier instance)
IpQualifier
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 ImmutableIpQualifier.Builder builder()
ImmutableIpQualifier
.
ImmutableIpQualifier.builder()
.networkName(String) // optional networkName
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.