Package org.xrpl.xrpl4j.crypto.signing
Class ImmutableSignature
java.lang.Object
org.xrpl.xrpl4j.crypto.signing.ImmutableSignature
- All Implemented Interfaces:
Signature
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Deprecated
@Immutable
@CheckReturnValue
public final class ImmutableSignature
extends Object
implements Signature
Deprecated.
Immutable implementation of
Signature
.
Use the builder to create immutable instances:
ImmutableSignature.builder()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Deprecated.Builds instances of typeImmutableSignature
. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Accessor for this signature as a base16-encoded (HEX) string.static ImmutableSignature.Builder
builder()
Deprecated.Creates a builder forImmutableSignature
.static ImmutableSignature
Deprecated.Creates an immutable copy of aSignature
value.boolean
Deprecated.This instance is equal to all instances ofImmutableSignature
that have equal attribute values.int
hashCode()
Deprecated.Computes a hash code from attributes:value
,base16Value
.toString()
Deprecated.Prints the immutable valueSignature
with attribute values.value()
Deprecated.The bytes of this signature.final ImmutableSignature
withValue
(UnsignedByteArray value) Deprecated.Copy the current immutable object by setting a value for thevalue
attribute.
-
Method Details
-
value
Deprecated.The bytes of this signature.- Specified by:
value
in interfaceSignature
- Returns:
- A
UnsignedByteArray
.
-
base16Value
Deprecated.Accessor for this signature as a base16-encoded (HEX) string.- Specified by:
base16Value
in interfaceSignature
- Returns:
- A
String
.
-
withValue
Deprecated.Copy the current immutable object by setting a value for thevalue
attribute. A shallow reference equality check is 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
Deprecated.This instance is equal to all instances ofImmutableSignature
that have equal attribute values. -
hashCode
public int hashCode()Deprecated.Computes a hash code from attributes:value
,base16Value
. -
toString
Deprecated.Prints the immutable valueSignature
with attribute values. -
copyOf
Deprecated.Creates an immutable copy of aSignature
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 Signature instance
-
builder
Deprecated.Creates a builder forImmutableSignature
.ImmutableSignature.builder() .value(org.xrpl.xrpl4j.codec.addresses.UnsignedByteArray) // required
value
.build();- Returns:
- A new ImmutableSignature builder
-