Class ImmutableRaftIndex
java.lang.Object
org.kiwiproject.consul.model.query.RaftIndex
org.kiwiproject.consul.model.query.ImmutableRaftIndex
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableRaftIndex
extends RaftIndex
Immutable implementation of
RaftIndex.
Use the builder to create immutable instances:
ImmutableRaftIndex.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableRaftIndex.Builderbuilder()Creates a builder forImmutableRaftIndex.static ImmutableRaftIndexCreates an immutable copy of aRaftIndexvalue.booleanThis instance is equal to all instances ofImmutableRaftIndexthat have equal attribute values.inthashCode()Returns a constant hash code value.toString()Prints the immutable valueRaftIndex.
-
Method Details
-
equals
This instance is equal to all instances ofImmutableRaftIndexthat have equal attribute values. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueRaftIndex. -
copyOf
Creates an immutable copy of aRaftIndexvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable RaftIndex instance
-
builder
Creates a builder forImmutableRaftIndex.ImmutableRaftIndex.builder() .build();- Returns:
- A new ImmutableRaftIndex builder
-