Package org.xrpl.xrpl4j.crypto.keys
Class ImmutableBase58EncodedSecret
java.lang.Object
org.xrpl.xrpl4j.crypto.keys.ImmutableBase58EncodedSecret
- All Implemented Interfaces:
Base58EncodedSecret
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableBase58EncodedSecret
extends Object
implements Base58EncodedSecret
Immutable implementation of
Base58EncodedSecret.
Use the builder to create immutable instances:
ImmutableBase58EncodedSecret.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableBase58EncodedSecret. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableBase58EncodedSecret.static ImmutableBase58EncodedSecretcopyOf(Base58EncodedSecret instance) Creates an immutable copy of aBase58EncodedSecretvalue.The decoded value of Base58 Encoded Secret.booleanThis instance is equal to all instances ofImmutableBase58EncodedSecretthat have equal attribute values.inthashCode()Computes a hash code from attributes:value,decodedValueBytes.toString()Prints the immutable valueBase58EncodedSecretwith attribute values.value()The value of Base58 Encoded Secret.Copy the current immutable object by setting a value for thevalueattribute.
-
Method Details
-
value
The value of Base58 Encoded Secret.- Specified by:
valuein interfaceBase58EncodedSecret- Returns:
- An instance of
String.
-
decodedValueBytes
The decoded value of Base58 Encoded Secret.- Specified by:
decodedValueBytesin interfaceBase58EncodedSecret- Returns:
- An instance of
UnsignedByteArray.
-
withValue
Copy the current immutable object by setting a value for thevalueattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for value- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableBase58EncodedSecretthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value,decodedValueBytes. -
toString
Prints the immutable valueBase58EncodedSecretwith attribute values. -
copyOf
Creates an immutable copy of aBase58EncodedSecretvalue. 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 Base58EncodedSecret instance
-
builder
Creates a builder forImmutableBase58EncodedSecret.ImmutableBase58EncodedSecret.builder() .value(String) // requiredvalue.build();- Returns:
- A new ImmutableBase58EncodedSecret builder
-