@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableClusterId extends Object implements ClusterId
ClusterId.
Use the builder to create immutable instances:
ImmutableClusterId.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableClusterId.Builder
Builds instances of type
ImmutableClusterId. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableClusterId.Builder |
builder()
Creates a builder for
ImmutableClusterId. |
long |
clusterId()
The cluster ID.
|
long |
clusterIncarnationId()
The cluster incarnation ID.
|
static ImmutableClusterId |
copyOf(ClusterId instance)
Creates an immutable copy of a
ClusterId value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableClusterId that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
clusterId, clusterIncarnationId. |
String |
toString()
Prints the immutable value
ClusterId with attribute values. |
ImmutableClusterId |
withClusterId(long value)
Copy the current immutable object by setting a value for the
clusterId attribute. |
ImmutableClusterId |
withClusterIncarnationId(long value)
Copy the current immutable object by setting a value for the
clusterIncarnationId attribute. |
public long clusterId()
public long clusterIncarnationId()
clusterIncarnationId in interface ClusterIdpublic final ImmutableClusterId withClusterId(long value)
clusterId attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for clusterIdthis objectpublic final ImmutableClusterId withClusterIncarnationId(long value)
clusterIncarnationId attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for clusterIncarnationIdthis objectpublic boolean equals(@Nullable Object another)
ImmutableClusterId that have equal attribute values.public int hashCode()
clusterId, clusterIncarnationId.public String toString()
ClusterId with attribute values.public static ImmutableClusterId copyOf(ClusterId instance)
ClusterId 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 ImmutableClusterId.Builder builder()
ImmutableClusterId.
ImmutableClusterId.builder()
.clusterId(long) // required clusterId
.clusterIncarnationId(long) // required clusterIncarnationId
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.