@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableInstancesInfo extends Object implements InstancesInfo
InstancesInfo.
Use the builder to create immutable instances:
ImmutableInstancesInfo.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableInstancesInfo.Builder
Builds instances of type
ImmutableInstancesInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableInstancesInfo.Builder |
builder()
Creates a builder for
ImmutableInstancesInfo. |
static ImmutableInstancesInfo |
copyOf(InstancesInfo instance)
Creates an immutable copy of a
InstancesInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableInstancesInfo that have equal attribute values. |
List<InstanceInfo> |
getInstances() |
int |
hashCode()
Computes a hash code from attributes:
instances. |
String |
toString()
Prints the immutable value
InstancesInfo with attribute values. |
ImmutableInstancesInfo |
withInstances(InstanceInfo... elements)
Copy the current immutable object with elements that replace the content of
instances. |
ImmutableInstancesInfo |
withInstances(Iterable<? extends InstanceInfo> elements)
Copy the current immutable object with elements that replace the content of
instances. |
public List<InstanceInfo> getInstances()
getInstances in interface InstancesInfoinstances attributepublic final ImmutableInstancesInfo withInstances(InstanceInfo... elements)
instances.elements - The elements to setthis objectpublic final ImmutableInstancesInfo withInstances(Iterable<? extends InstanceInfo> elements)
instances.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of instances elements to setthis objectpublic boolean equals(Object another)
ImmutableInstancesInfo that have equal attribute values.public int hashCode()
instances.public String toString()
InstancesInfo with attribute values.public static ImmutableInstancesInfo copyOf(InstancesInfo instance)
InstancesInfo 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 ImmutableInstancesInfo.Builder builder()
ImmutableInstancesInfo.
ImmutableInstancesInfo.builder()
.addInstance|addAllInstances(org.cloudfoundry.client.lib.domain.InstanceInfo) // instances elements
.build();
Copyright © 2020 SAP SE. All rights reserved.