Class ImmutableRaftIndex


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableRaftIndex
    extends RaftIndex
    Immutable implementation of RaftIndex.

    Use the builder to create immutable instances: ImmutableRaftIndex.builder().

    • Method Summary

      Modifier and Type Method Description
      static ImmutableRaftIndex.Builder builder()
      Creates a builder for ImmutableRaftIndex.
      static ImmutableRaftIndex copyOf​(RaftIndex instance)
      Creates an immutable copy of a RaftIndex value.
      boolean equals​(java.lang.Object another)
      This instance is equal to all instances of ImmutableRaftIndex that have equal attribute values.
      int hashCode()
      Returns a constant hash code value.
      java.lang.String toString()
      Prints the immutable value RaftIndex.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of ImmutableRaftIndex that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Returns a constant hash code value.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value RaftIndex.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableRaftIndex copyOf​(RaftIndex instance)
        Creates an immutable copy of a RaftIndex value. 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