Package org.xrpl.xrpl4j.model.ledger
Class ImmutableVoteEntryWrapper
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableVoteEntryWrapper
- All Implemented Interfaces:
VoteEntryWrapper
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableVoteEntryWrapper
extends Object
implements VoteEntryWrapper
Immutable implementation of
VoteEntryWrapper.
Use the builder to create immutable instances:
ImmutableVoteEntryWrapper.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableVoteEntryWrapper. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableVoteEntryWrapper.static ImmutableVoteEntryWrappercopyOf(VoteEntryWrapper instance) Creates an immutable copy of aVoteEntryWrappervalue.booleanThis instance is equal to all instances ofImmutableVoteEntryWrapperthat have equal attribute values.inthashCode()Computes a hash code from attributes:voteEntry.toString()Prints the immutable valueVoteEntryWrapperwith attribute values.AVoteEntry.withVoteEntry(VoteEntry value) Copy the current immutable object by setting a value for thevoteEntryattribute.
-
Method Details
-
voteEntry
AVoteEntry.- Specified by:
voteEntryin interfaceVoteEntryWrapper- Returns:
- A
VoteEntry.
-
withVoteEntry
Copy the current immutable object by setting a value for thevoteEntryattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for voteEntry- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableVoteEntryWrapperthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:voteEntry. -
toString
Prints the immutable valueVoteEntryWrapperwith attribute values. -
copyOf
Creates an immutable copy of aVoteEntryWrappervalue. 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 VoteEntryWrapper instance
-
builder
Creates a builder forImmutableVoteEntryWrapper.ImmutableVoteEntryWrapper.builder() .voteEntry(org.xrpl.xrpl4j.model.ledger.VoteEntry) // requiredvoteEntry.build();- Returns:
- A new ImmutableVoteEntryWrapper builder
-