Class ImmutableIpQualifier
java.lang.Object
com.iland.core.web.rest.response.vm.Qualifier
com.iland.core.web.rest.response.vm.IpQualifier
com.iland.core.web.rest.response.vm.ImmutableIpQualifier
@Generated(from="IpQualifier",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableIpQualifier
extends IpQualifier
Immutable implementation of
IpQualifier.
Use the builder to create immutable instances:
ImmutableIpQualifier.builder().
Use the static factory method to create immutable instances:
ImmutableIpQualifier.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableIpQualifier. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableIpQualifier.Builderbuilder()Creates a builder forImmutableIpQualifier.static ImmutableIpQualifiercopyOf(IpQualifier instance) Creates an immutable copy of aIpQualifiervalue.booleanThis instance is equal to all instances ofImmutableIpQualifierthat have equal attribute values.inthashCode()Computes a hash code from attributes:networkName,type.Optional network name.static ImmutableIpQualifierConstruct a new immutableIpQualifierinstance.toString()Prints the immutable valueIpQualifierwith attribute values.type()The qualifier type.final ImmutableIpQualifierwithNetworkName(String value) Copy the current immutable object by setting a present value for the optionalnetworkNameattribute.final ImmutableIpQualifierwithNetworkName(Optional<String> optional) Copy the current immutable object by setting an optional value for thenetworkNameattribute.
-
Method Details
-
networkName
Optional network name.- Specified by:
networkNamein classIpQualifier
-
type
Description copied from class:QualifierThe qualifier type.- Overrides:
typein classIpQualifier- Returns:
- The computed-at-construction value of the
typeattribute
-
withNetworkName
Copy the current immutable object by setting a present value for the optionalnetworkNameattribute.- Parameters:
value- The value for networkName- Returns:
- A modified copy of
thisobject
-
withNetworkName
Copy the current immutable object by setting an optional value for thenetworkNameattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for networkName- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableIpQualifierthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:networkName,type. -
toString
Prints the immutable valueIpQualifierwith attribute values. -
of
Construct a new immutableIpQualifierinstance.- Parameters:
networkName- The value for thenetworkNameattribute- Returns:
- An immutable IpQualifier instance
-
copyOf
Creates an immutable copy of aIpQualifiervalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable IpQualifier instance
-
builder
Creates a builder forImmutableIpQualifier.ImmutableIpQualifier.builder() .networkName(String) // optionalnetworkName.build();- Returns:
- A new ImmutableIpQualifier builder
-