@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ServiceCheck"}) @Immutable public final class ImmutableServiceCheck extends ServiceCheck
ServiceCheck.
Use the builder to create immutable instances:
ImmutableServiceCheck.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableServiceCheck.Builder
Builds instances of type
ImmutableServiceCheck. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableServiceCheck.Builder |
builder()
Creates a builder for
ImmutableServiceCheck. |
static ImmutableServiceCheck |
copyOf(ServiceCheck instance)
Creates an immutable copy of a
ServiceCheck value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableServiceCheck that have equal attribute values. |
com.google.common.collect.ImmutableList<HealthCheck> |
getChecks() |
Node |
getNode() |
Service |
getService() |
int |
hashCode()
Computes a hash code from attributes:
node, service, checks. |
String |
toString()
Prints the immutable value
ServiceCheck with attribute values. |
ImmutableServiceCheck |
withChecks(HealthCheck... elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableServiceCheck |
withChecks(Iterable<? extends HealthCheck> elements)
Copy the current immutable object with elements that replace the content of
checks. |
ImmutableServiceCheck |
withNode(Node value)
Copy the current immutable object by setting a value for the
node attribute. |
ImmutableServiceCheck |
withService(Service value)
Copy the current immutable object by setting a value for the
service attribute. |
public Node getNode()
getNode in class ServiceChecknode attributepublic Service getService()
getService in class ServiceCheckservice attributepublic com.google.common.collect.ImmutableList<HealthCheck> getChecks()
getChecks in class ServiceCheckchecks attributepublic final ImmutableServiceCheck withNode(Node value)
node attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for nodethis objectpublic final ImmutableServiceCheck withService(Service value)
service attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for servicethis objectpublic final ImmutableServiceCheck withChecks(HealthCheck... elements)
checks.elements - The elements to setthis objectpublic final ImmutableServiceCheck withChecks(Iterable<? extends HealthCheck> elements)
checks.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of checks elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableServiceCheck that have equal attribute values.public int hashCode()
node, service, checks.public String toString()
ServiceCheck with attribute values.public static ImmutableServiceCheck copyOf(ServiceCheck instance)
ServiceCheck 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 ImmutableServiceCheck.Builder builder()
ImmutableServiceCheck.Copyright © 2018. All rights reserved.