Class ImmutableGatewayQualifier
java.lang.Object
com.iland.core.web.rest.response.vm.Qualifier
com.iland.core.web.rest.response.vm.GatewayQualifier
com.iland.core.web.rest.response.vm.ImmutableGatewayQualifier
@Generated(from="GatewayQualifier",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableGatewayQualifier
extends GatewayQualifier
Immutable implementation of
GatewayQualifier.
Use the builder to create immutable instances:
ImmutableGatewayQualifier.builder().
Use the static factory method to create immutable instances:
ImmutableGatewayQualifier.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableGatewayQualifier. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableGatewayQualifier.static ImmutableGatewayQualifiercopyOf(GatewayQualifier instance) Creates an immutable copy of aGatewayQualifiervalue.booleanThis instance is equal to all instances ofImmutableGatewayQualifierthat have equal attribute values.inthashCode()Computes a hash code from attributes:networkName,type.The network name.static ImmutableGatewayQualifierConstruct a new immutableGatewayQualifierinstance.toString()Prints the immutable valueGatewayQualifierwith attribute values.type()The qualifier type.withNetworkName(String value) Copy the current immutable object by setting a value for thenetworkNameattribute.
-
Method Details
-
networkName
The network name.- Specified by:
networkNamein classGatewayQualifier
-
type
Description copied from class:QualifierThe qualifier type.- Overrides:
typein classGatewayQualifier- Returns:
- The computed-at-construction value of the
typeattribute
-
withNetworkName
Copy the current immutable object by setting a value for thenetworkNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for networkName- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableGatewayQualifierthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:networkName,type. -
toString
Prints the immutable valueGatewayQualifierwith attribute values. -
of
Construct a new immutableGatewayQualifierinstance.- Parameters:
networkName- The value for thenetworkNameattribute- Returns:
- An immutable GatewayQualifier instance
-
copyOf
Creates an immutable copy of aGatewayQualifiervalue. 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 GatewayQualifier instance
-
builder
Creates a builder forImmutableGatewayQualifier.ImmutableGatewayQualifier.builder() .networkName(String) // requirednetworkName.build();- Returns:
- A new ImmutableGatewayQualifier builder
-