Class ImmutablePathStep.Builder
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutablePathStep.Builder
- Enclosing class:
ImmutablePathStep
Builds instances of type
ImmutablePathStep.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionInitializes the optional valueaccountto account.Initializes the optional valueaccountto account.build()Builds a newImmutablePathStep.Initializes the optional valuecurrencyto currency.Initializes the optional valuecurrencyto currency.Fill a builder with attribute values from the providedPathStepinstance.Initializes the optional valueissuerto issuer.Initializes the optional valueissuerto issuer.
-
Method Details
-
from
Fill a builder with attribute values from the providedPathStepinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
account
Initializes the optional valueaccountto account.- Parameters:
account- The value for account- Returns:
thisbuilder for chained invocation
-
account
@CanIgnoreReturnValue public final ImmutablePathStep.Builder account(Optional<? extends Address> account) Initializes the optional valueaccountto account.- Parameters:
account- The value for account- Returns:
thisbuilder for use in a chained invocation
-
currency
Initializes the optional valuecurrencyto currency.- Parameters:
currency- The value for currency- Returns:
thisbuilder for chained invocation
-
currency
Initializes the optional valuecurrencyto currency.- Parameters:
currency- The value for currency- Returns:
thisbuilder for use in a chained invocation
-
issuer
Initializes the optional valueissuerto issuer.- Parameters:
issuer- The value for issuer- Returns:
thisbuilder for chained invocation
-
issuer
@CanIgnoreReturnValue public final ImmutablePathStep.Builder issuer(Optional<? extends Address> issuer) Initializes the optional valueissuerto issuer.- Parameters:
issuer- The value for issuer- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutablePathStep.- Returns:
- An immutable instance of PathStep
- Throws:
IllegalStateException- if any required attributes are missing
-