Skip to content

Commit f324106

Browse files
committed
Formatting
1 parent abb1b2a commit f324106

22 files changed

+90
-107
lines changed

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AccountDelete.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@JsonSerialize(as = ImmutableAccountDelete.class)
3838
@JsonDeserialize(as = ImmutableAccountDelete.class)
3939
public interface AccountDelete extends Transaction {
40-
40+
4141
/**
4242
* Construct a builder for this class.
4343
*
@@ -46,7 +46,7 @@ public interface AccountDelete extends Transaction {
4646
static ImmutableAccountDelete.Builder builder() {
4747
return ImmutableAccountDelete.builder();
4848
}
49-
49+
5050
/**
5151
* Set of {@link TransactionFlags}s for this {@link AccountDelete}, which only allows the {@code tfFullyCanonicalSig}
5252
* flag, which is deprecated.
@@ -61,7 +61,7 @@ static ImmutableAccountDelete.Builder builder() {
6161
default TransactionFlags flags() {
6262
return TransactionFlags.EMPTY;
6363
}
64-
64+
6565
/**
6666
* The {@link Address} of an account to receive any leftover XRP after deleting the sending account. Must be a funded
6767
* account in the ledger, and must not be the sending account.
@@ -70,7 +70,7 @@ default TransactionFlags flags() {
7070
*/
7171
@JsonProperty("Destination")
7272
Address destination();
73-
73+
7474
/**
7575
* Arbitrary destination tag that identifies a hosted recipient or other information for the recipient of the deleted
7676
* account's leftover XRP.

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AccountSet.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ default AccountSet normalizeClearFlag() {
130130
Preconditions.checkState(
131131
clearFlag().get().getValue() == clearFlagRawValue().get().longValue(),
132132
String.format("clearFlag and clearFlagRawValue should be equivalent, but clearFlag's underlying " +
133-
"value was %s and clearFlagRawValue was %s",
133+
"value was %s and clearFlagRawValue was %s",
134134
clearFlag().get().getValue(),
135135
clearFlagRawValue().get().longValue()
136136
)
@@ -223,7 +223,7 @@ default AccountSet normalizeSetFlag() {
223223
Preconditions.checkState(
224224
setFlag().get().getValue() == setFlagRawValue().get().longValue(),
225225
String.format("setFlag and setFlagRawValue should be equivalent, but setFlag's underlying " +
226-
"value was %s and setFlagRawValue was %s",
226+
"value was %s and setFlagRawValue was %s",
227227
setFlag().get().getValue(),
228228
setFlagRawValue().get().longValue()
229229
)
@@ -350,8 +350,8 @@ default void checkTransferRate() {
350350
transferRate()
351351
.ifPresent(rate ->
352352
Preconditions.checkArgument(rate.equals(UnsignedInteger.ZERO) ||
353-
(rate.compareTo(UnsignedInteger.valueOf(1000000000L)) >= 0 &&
354-
rate.compareTo(UnsignedInteger.valueOf(2000000000L)) <= 0),
353+
(rate.compareTo(UnsignedInteger.valueOf(1000000000L)) >= 0 &&
354+
rate.compareTo(UnsignedInteger.valueOf(2000000000L)) <= 0),
355355
"transferRate must be between 1,000,000,000 and 2,000,000,000 or equal to 0."
356356
)
357357
);
@@ -365,14 +365,14 @@ default void checkTickSize() {
365365
tickSize()
366366
.ifPresent(tickSize ->
367367
Preconditions.checkArgument(tickSize.equals(UnsignedInteger.ZERO) ||
368-
(tickSize.compareTo(UnsignedInteger.valueOf(3)) >= 0 &&
369-
tickSize.compareTo(UnsignedInteger.valueOf(15)) <= 0),
368+
(tickSize.compareTo(UnsignedInteger.valueOf(3)) >= 0 &&
369+
tickSize.compareTo(UnsignedInteger.valueOf(15)) <= 0),
370370
"tickSize must be between 3 and 15 inclusive or be equal to 0."
371371
)
372372
);
373373

374374
}
375-
375+
376376
/**
377377
* There are several options which can be either enabled or disabled for an account. Account options are represented
378378
* by different types of flags depending on the situation.
@@ -491,9 +491,7 @@ enum AccountSetFlag {
491491
* annotation, otherwise Jackson treats the JSON integer value as an ordinal.
492492
*
493493
* @param value The int value of the flag.
494-
*
495494
* @return The {@link AccountSetFlag} for the given integer value.
496-
*
497495
* @see "https://github.com/FasterXML/jackson-databind/issues/1850"
498496
*/
499497
@JsonCreator

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmBid.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@JsonDeserialize(as = ImmutableAmmBid.class)
2424
@Beta
2525
public interface AmmBid extends Transaction {
26-
26+
2727
/**
2828
* Construct a {@code AmmBid} builder.
2929
*
@@ -32,7 +32,7 @@ public interface AmmBid extends Transaction {
3232
static ImmutableAmmBid.Builder builder() {
3333
return ImmutableAmmBid.builder();
3434
}
35-
35+
3636
/**
3737
* Set of {@link TransactionFlags}s for this {@link AmmBid}, which only allows the {@code tfFullyCanonicalSig} flag,
3838
* which is deprecated.
@@ -47,23 +47,23 @@ static ImmutableAmmBid.Builder builder() {
4747
default TransactionFlags flags() {
4848
return TransactionFlags.EMPTY;
4949
}
50-
50+
5151
/**
5252
* The definition for one of the assets in the AMM's pool.
5353
*
5454
* @return An {@link Issue}.
5555
*/
5656
@JsonProperty("Asset")
5757
Issue asset();
58-
58+
5959
/**
6060
* The definition for the other asset in the AMM's pool.
6161
*
6262
* @return An {@link Issue}.
6363
*/
6464
@JsonProperty("Asset2")
6565
Issue asset2();
66-
66+
6767
/**
6868
* Pay at least this amount for the slot. Setting this value higher makes it harder for others to outbid you. If
6969
* omitted, pay the minimum necessary to win the bid.
@@ -80,7 +80,7 @@ default TransactionFlags flags() {
8080
*/
8181
@JsonProperty("BidMin")
8282
Optional<CurrencyAmount> bidMin();
83-
83+
8484
/**
8585
* Pay at most this amount for the slot. If the cost to win the bid is higher than this amount, the transaction fails.
8686
* If omitted, pay as much as necessary to win the bid.
@@ -97,7 +97,7 @@ default TransactionFlags flags() {
9797
*/
9898
@JsonProperty("BidMax")
9999
Optional<CurrencyAmount> bidMax();
100-
100+
101101
/**
102102
* A list of up to 4 additional accounts that you allow to trade at the discounted fee. This cannot include the
103103
* address of the transaction sender

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmCreate.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@JsonDeserialize(as = ImmutableAmmCreate.class)
1919
@Beta
2020
public interface AmmCreate extends Transaction {
21-
21+
2222
/**
2323
* Construct a {@code AmmCreate} builder.
2424
*
@@ -27,7 +27,7 @@ public interface AmmCreate extends Transaction {
2727
static ImmutableAmmCreate.Builder builder() {
2828
return ImmutableAmmCreate.builder();
2929
}
30-
30+
3131
/**
3232
* Set of {@link TransactionFlags}s for this {@link AmmCreate}, which only allows the {@code tfFullyCanonicalSig}
3333
* flag, which is deprecated.
@@ -42,23 +42,23 @@ static ImmutableAmmCreate.Builder builder() {
4242
default TransactionFlags flags() {
4343
return TransactionFlags.EMPTY;
4444
}
45-
45+
4646
/**
4747
* The first of the two assets to fund this AMM with.
4848
*
4949
* @return A {@link CurrencyAmount}.
5050
*/
5151
@JsonProperty("Amount")
5252
CurrencyAmount amount();
53-
53+
5454
/**
5555
* The second of the two assets to fund this AMM with.
5656
*
5757
* @return A {@link CurrencyAmount}.
5858
*/
5959
@JsonProperty("Amount2")
6060
CurrencyAmount amount2();
61-
61+
6262
/**
6363
* The fee to charge for trades against this AMM instance.
6464
*

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmDelete.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@JsonDeserialize(as = ImmutableAmmDelete.class)
2121
@Beta
2222
public interface AmmDelete extends Transaction {
23-
23+
2424
/**
2525
* Construct a {@code AmmDelete} builder.
2626
*
@@ -29,7 +29,7 @@ public interface AmmDelete extends Transaction {
2929
static ImmutableAmmDelete.Builder builder() {
3030
return ImmutableAmmDelete.builder();
3131
}
32-
32+
3333
/**
3434
* Set of {@link TransactionFlags}s for this {@link AmmDelete}, which only allows the {@code tfFullyCanonicalSig}
3535
* flag, which is deprecated.
@@ -41,15 +41,15 @@ static ImmutableAmmDelete.Builder builder() {
4141
default TransactionFlags flags() {
4242
return TransactionFlags.EMPTY;
4343
}
44-
44+
4545
/**
4646
* The definition for one of the assets in the AMM's pool.
4747
*
4848
* @return An {@link Issue}.
4949
*/
5050
@JsonProperty("Asset")
5151
Issue asset();
52-
52+
5353
/**
5454
* The definition for the other asset in the AMM's pool.
5555
*

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmDeposit.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@JsonDeserialize(as = ImmutableAmmDeposit.class)
2222
@Beta
2323
public interface AmmDeposit extends Transaction {
24-
24+
2525
/**
2626
* Construct a {@code AmmDeposit} builder.
2727
*
@@ -30,31 +30,31 @@ public interface AmmDeposit extends Transaction {
3030
static ImmutableAmmDeposit.Builder builder() {
3131
return ImmutableAmmDeposit.builder();
3232
}
33-
33+
3434
/**
3535
* A {@link AmmDepositFlags} for this transaction. This field must be set manually.
3636
*
3737
* @return A {@link AmmDepositFlags} for this transaction.
3838
*/
3939
@JsonProperty("Flags")
4040
AmmDepositFlags flags();
41-
41+
4242
/**
4343
* The definition for one of the assets in the AMM's pool.
4444
*
4545
* @return An {@link Issue}.
4646
*/
4747
@JsonProperty("Asset")
4848
Issue asset();
49-
49+
5050
/**
5151
* The definition for the other asset in the AMM's pool.
5252
*
5353
* @return An {@link Issue}.
5454
*/
5555
@JsonProperty("Asset2")
5656
Issue asset2();
57-
57+
5858
/**
5959
* The amount of one asset to deposit to the AMM. If present, this must match the type of one of the assets (tokens or
6060
* XRP) in the AMM's pool.
@@ -63,7 +63,7 @@ static ImmutableAmmDeposit.Builder builder() {
6363
*/
6464
@JsonProperty("Amount")
6565
Optional<CurrencyAmount> amount();
66-
66+
6767
/**
6868
* The amount of another asset to add to the AMM. If present, this must match the type of the other asset in the AMM's
6969
* pool and cannot be the same asset as Amount.
@@ -72,15 +72,15 @@ static ImmutableAmmDeposit.Builder builder() {
7272
*/
7373
@JsonProperty("Amount2")
7474
Optional<CurrencyAmount> amount2();
75-
75+
7676
/**
7777
* The maximum effective price, in the deposit asset, to pay for each LP Token received.
7878
*
7979
* @return An optionally present {@link CurrencyAmount}.
8080
*/
8181
@JsonProperty("EPrice")
8282
Optional<CurrencyAmount> effectivePrice();
83-
83+
8484
/**
8585
* How many of the AMM's LP Tokens to buy.
8686
*
@@ -96,7 +96,7 @@ static ImmutableAmmDeposit.Builder builder() {
9696
*/
9797
@JsonProperty("LPTokenOut")
9898
Optional<CurrencyAmount> lpTokenOut();
99-
99+
100100
/**
101101
* An optional {@link TradingFee} to set on the AMM instance. This field is only honored if the AMM's LP token balance
102102
* is zero, and can only be set if flags is {@link AmmDepositFlags#TWO_ASSET_IF_EMPTY}.

xrpl4j-core/src/main/java/org/xrpl/xrpl4j/model/transactions/AmmVote.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@JsonDeserialize(as = ImmutableAmmVote.class)
2020
@Beta
2121
public interface AmmVote extends Transaction {
22-
22+
2323
/**
2424
* Construct a {@code AmmVote} builder.
2525
*
@@ -28,7 +28,7 @@ public interface AmmVote extends Transaction {
2828
static ImmutableAmmVote.Builder builder() {
2929
return ImmutableAmmVote.builder();
3030
}
31-
31+
3232
/**
3333
* Set of {@link TransactionFlags}s for this {@link AmmVote}, which only allows the {@code tfFullyCanonicalSig} flag,
3434
* which is deprecated.
@@ -43,23 +43,23 @@ static ImmutableAmmVote.Builder builder() {
4343
default TransactionFlags flags() {
4444
return TransactionFlags.EMPTY;
4545
}
46-
46+
4747
/**
4848
* The definition for one of the assets in the AMM's pool.
4949
*
5050
* @return An {@link Issue}.
5151
*/
5252
@JsonProperty("Asset")
5353
Issue asset();
54-
54+
5555
/**
5656
* The definition for the other asset in the AMM's pool.
5757
*
5858
* @return An {@link Issue}.
5959
*/
6060
@JsonProperty("Asset2")
6161
Issue asset2();
62-
62+
6363
/**
6464
* The proposed fee to vote for.
6565
*

0 commit comments

Comments
 (0)