Class ImmutableNetmaskQualifier
java.lang.Object
com.iland.core.web.rest.response.vm.Qualifier
com.iland.core.web.rest.response.vm.NetmaskQualifier
com.iland.core.web.rest.response.vm.ImmutableNetmaskQualifier
@Generated(from="NetmaskQualifier",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableNetmaskQualifier
extends NetmaskQualifier
Immutable implementation of
NetmaskQualifier.
Use the builder to create immutable instances:
ImmutableNetmaskQualifier.builder().
Use the static factory method to create immutable instances:
ImmutableNetmaskQualifier.of().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableNetmaskQualifier. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableNetmaskQualifier.static ImmutableNetmaskQualifiercopyOf(NetmaskQualifier instance) Creates an immutable copy of aNetmaskQualifiervalue.booleanThis instance is equal to all instances ofImmutableNetmaskQualifierthat have equal attribute values.inthashCode()Computes a hash code from attributes:networkName,type.The network name.static ImmutableNetmaskQualifierConstruct a new immutableNetmaskQualifierinstance.toString()Prints the immutable valueNetmaskQualifierwith 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 classNetmaskQualifier
-
type
Description copied from class:QualifierThe qualifier type.- Overrides:
typein classNetmaskQualifier- 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 ofImmutableNetmaskQualifierthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:networkName,type. -
toString
Prints the immutable valueNetmaskQualifierwith attribute values. -
of
Construct a new immutableNetmaskQualifierinstance.- Parameters:
networkName- The value for thenetworkNameattribute- Returns:
- An immutable NetmaskQualifier instance
-
copyOf
Creates an immutable copy of aNetmaskQualifiervalue. 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 NetmaskQualifier instance
-
builder
Creates a builder forImmutableNetmaskQualifier.ImmutableNetmaskQualifier.builder() .networkName(String) // requirednetworkName.build();- Returns:
- A new ImmutableNetmaskQualifier builder
-