@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","Datacenter"}) @Immutable public final class ImmutableDatacenter extends Datacenter
Datacenter.
Use the builder to create immutable instances:
ImmutableDatacenter.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDatacenter.Builder
Builds instances of type
ImmutableDatacenter. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableDatacenter.Builder |
builder()
Creates a builder for
ImmutableDatacenter. |
static ImmutableDatacenter |
copyOf(Datacenter instance)
Creates an immutable copy of a
Datacenter value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDatacenter that have equal attribute values. |
com.google.common.collect.ImmutableList<Coordinate> |
getCoordinates() |
String |
getDatacenter() |
int |
hashCode()
Computes a hash code from attributes:
datacenter, coordinates. |
String |
toString()
Prints the immutable value
Datacenter with attribute values. |
ImmutableDatacenter |
withCoordinates(Coordinate... elements)
Copy the current immutable object with elements that replace the content of
coordinates. |
ImmutableDatacenter |
withCoordinates(Iterable<? extends Coordinate> elements)
Copy the current immutable object with elements that replace the content of
coordinates. |
ImmutableDatacenter |
withDatacenter(String value)
Copy the current immutable object by setting a value for the
datacenter attribute. |
public String getDatacenter()
getDatacenter in class Datacenterdatacenter attributepublic com.google.common.collect.ImmutableList<Coordinate> getCoordinates()
getCoordinates in class Datacentercoordinates attributepublic final ImmutableDatacenter withDatacenter(String value)
datacenter attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for datacenterthis objectpublic final ImmutableDatacenter withCoordinates(Coordinate... elements)
coordinates.elements - The elements to setthis objectpublic final ImmutableDatacenter withCoordinates(Iterable<? extends Coordinate> elements)
coordinates.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of coordinates elements to setthis objectpublic boolean equals(@Nullable Object another)
ImmutableDatacenter that have equal attribute values.public int hashCode()
datacenter, coordinates.public String toString()
Datacenter with attribute values.public static ImmutableDatacenter copyOf(Datacenter instance)
Datacenter 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 ImmutableDatacenter.Builder builder()
ImmutableDatacenter.Copyright © 2018. All rights reserved.