@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableServiceWeights extends ServiceWeights
ServiceWeights.
Use the builder to create immutable instances:
ImmutableServiceWeights.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableServiceWeights.Builder
Builds instances of type
ImmutableServiceWeights. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableServiceWeights.Builder |
builder()
Creates a builder for
ImmutableServiceWeights. |
static ImmutableServiceWeights |
copyOf(ServiceWeights instance)
Creates an immutable copy of a
ServiceWeights value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableServiceWeights that have equal attribute values. |
int |
getPassing() |
int |
getWarning() |
int |
hashCode()
Computes a hash code from attributes:
passing, warning. |
String |
toString()
Prints the immutable value
ServiceWeights with attribute values. |
ImmutableServiceWeights |
withPassing(int value)
Copy the current immutable object by setting a value for the
passing attribute. |
ImmutableServiceWeights |
withWarning(int value)
Copy the current immutable object by setting a value for the
warning attribute. |
public int getPassing()
getPassing in class ServiceWeightspassing attributepublic int getWarning()
getWarning in class ServiceWeightswarning attributepublic final ImmutableServiceWeights withPassing(int value)
passing attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for passingthis objectpublic final ImmutableServiceWeights withWarning(int value)
warning attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for warningthis objectpublic boolean equals(@Nullable Object another)
ImmutableServiceWeights that have equal attribute values.public int hashCode()
passing, warning.public String toString()
ServiceWeights with attribute values.public static ImmutableServiceWeights copyOf(ServiceWeights instance)
ServiceWeights 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 ImmutableServiceWeights.Builder builder()
ImmutableServiceWeights.
ImmutableServiceWeights.builder()
.passing(int) // required passing
.warning(int) // required warning
.build();
Copyright © 2019. All rights reserved.