Package org.xrpl.xrpl4j.crypto
Class ImmutableDefaultSeed
java.lang.Object
org.xrpl.xrpl4j.crypto.Seed.DefaultSeed
org.xrpl.xrpl4j.crypto.ImmutableDefaultSeed
- All Implemented Interfaces:
Seed
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableDefaultSeed
extends Seed.DefaultSeed
Immutable implementation of
Seed.DefaultSeed
.
Use the builder to create immutable instances:
ImmutableDefaultSeed.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableDefaultSeed
.Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.crypto.Seed
Seed.DefaultSeed
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableDefaultSeed.Builder
builder()
Creates a builder forImmutableDefaultSeed
.static ImmutableDefaultSeed
copyOf
(Seed.DefaultSeed instance) Creates an immutable copy of aSeed.DefaultSeed
value.The decoded details of this seed.boolean
This instance is equal to all instances ofImmutableDefaultSeed
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:value
.value()
The seed value, as a Base58-encoded string.final ImmutableDefaultSeed
Copy the current immutable object by setting a value for thevalue
attribute.Methods inherited from class org.xrpl.xrpl4j.crypto.Seed.DefaultSeed
toString
-
Method Details
-
value
Description copied from interface:Seed
The seed value, as a Base58-encoded string.- Specified by:
value
in interfaceSeed
- Specified by:
value
in classSeed.DefaultSeed
- Returns:
- The value of the
value
attribute
-
withValue
Copy the current immutable object by setting a value for thevalue
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableDefaultSeed
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:value
. -
decodedSeed
The decoded details of this seed.Returns a lazily initialized value of the
decodedSeed
attribute. Initialized once and only once and stored for subsequent access with proper synchronization. In case of any exception or error thrown by the lazy value initializer, the result will not be memoised (i.e. remembered) and on next call computation will be attempted again.- Specified by:
decodedSeed
in interfaceSeed
- Overrides:
decodedSeed
in classSeed.DefaultSeed
- Returns:
- A lazily initialized value of the
decodedSeed
attribute
-
copyOf
Creates an immutable copy of aSeed.DefaultSeed
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 DefaultSeed instance
-
builder
Creates a builder forImmutableDefaultSeed
.ImmutableDefaultSeed.builder() .value(String) // required
value
.build();- Returns:
- A new ImmutableDefaultSeed builder
-