@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTaggedAddresses extends TaggedAddresses
TaggedAddresses.
Use the builder to create immutable instances:
ImmutableTaggedAddresses.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTaggedAddresses.Builder
Builds instances of type
ImmutableTaggedAddresses. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableTaggedAddresses.Builder |
builder()
Creates a builder for
ImmutableTaggedAddresses. |
static ImmutableTaggedAddresses |
copyOf(TaggedAddresses instance)
Creates an immutable copy of a
TaggedAddresses value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTaggedAddresses that have equal attribute values. |
Optional<String> |
getLan() |
String |
getWan() |
int |
hashCode()
Computes a hash code from attributes:
wan, lan. |
String |
toString()
Prints the immutable value
TaggedAddresses with attribute values. |
ImmutableTaggedAddresses |
withLan(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
lan attribute. |
ImmutableTaggedAddresses |
withLan(String value)
Copy the current immutable object by setting a present value for the optional
lan attribute. |
ImmutableTaggedAddresses |
withWan(String value)
Copy the current immutable object by setting a value for the
wan attribute. |
public String getWan()
getWan in class TaggedAddresseswan attributepublic Optional<String> getLan()
getLan in class TaggedAddresseslan attributepublic final ImmutableTaggedAddresses withWan(String value)
wan attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for wanthis objectpublic final ImmutableTaggedAddresses withLan(String value)
lan attribute.value - The value for lanthis objectpublic final ImmutableTaggedAddresses withLan(Optional<String> optional)
lan attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for lanthis objectpublic boolean equals(@Nullable Object another)
ImmutableTaggedAddresses that have equal attribute values.public int hashCode()
wan, lan.public String toString()
TaggedAddresses with attribute values.public static ImmutableTaggedAddresses copyOf(TaggedAddresses instance)
TaggedAddresses 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 ImmutableTaggedAddresses.Builder builder()
ImmutableTaggedAddresses.
ImmutableTaggedAddresses.builder()
.wan(String) // required wan
.lan(String) // optional lan
.build();
Copyright © 2019. All rights reserved.