|
| 1 | +// Generated by delombok at Thu Apr 10 13:56:11 PDT 2025 |
1 | 2 | package com.fasterxml.jackson.datatype.javax.money; |
2 | 3 |
|
3 | | -import lombok.AllArgsConstructor; |
4 | | -import lombok.Getter; |
5 | | -import lombok.With; |
6 | | - |
7 | | -@AllArgsConstructor(staticName = "valueOf") |
8 | | -@Getter |
9 | | -public final class FieldNames |
10 | | -{ |
| 4 | +public final class FieldNames { |
11 | 5 | static final FieldNames DEFAULT = FieldNames.valueOf("amount", "currency", "formatted"); |
12 | | - |
13 | | - @With |
14 | 6 | private final String amount; |
15 | | - |
16 | | - @With |
17 | 7 | private final String currency; |
18 | | - |
19 | | - @With |
20 | 8 | private final String formatted; |
21 | 9 |
|
22 | 10 | public static FieldNames defaults() { |
23 | 11 | return DEFAULT; |
24 | 12 | } |
25 | 13 |
|
| 14 | + //@lombok.Generated |
| 15 | + private FieldNames(final String amount, final String currency, final String formatted) { |
| 16 | + this.amount = amount; |
| 17 | + this.currency = currency; |
| 18 | + this.formatted = formatted; |
| 19 | + } |
| 20 | + |
| 21 | + //@lombok.Generated |
| 22 | + public static FieldNames valueOf(final String amount, final String currency, final String formatted) { |
| 23 | + return new FieldNames(amount, currency, formatted); |
| 24 | + } |
| 25 | + |
| 26 | + //@lombok.Generated |
| 27 | + public String getAmount() { |
| 28 | + return this.amount; |
| 29 | + } |
| 30 | + |
| 31 | + //@lombok.Generated |
| 32 | + public String getCurrency() { |
| 33 | + return this.currency; |
| 34 | + } |
| 35 | + |
| 36 | + //@lombok.Generated |
| 37 | + public String getFormatted() { |
| 38 | + return this.formatted; |
| 39 | + } |
| 40 | + |
| 41 | + /** |
| 42 | + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). |
| 43 | + */ |
| 44 | + //@lombok.Generated |
| 45 | + public FieldNames withAmount(final String amount) { |
| 46 | + return this.amount == amount ? this : new FieldNames(amount, this.currency, this.formatted); |
| 47 | + } |
| 48 | + |
| 49 | + /** |
| 50 | + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). |
| 51 | + */ |
| 52 | + //@lombok.Generated |
| 53 | + public FieldNames withCurrency(final String currency) { |
| 54 | + return this.currency == currency ? this : new FieldNames(this.amount, currency, this.formatted); |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed). |
| 59 | + */ |
| 60 | + //@lombok.Generated |
| 61 | + public FieldNames withFormatted(final String formatted) { |
| 62 | + return this.formatted == formatted ? this : new FieldNames(this.amount, this.currency, formatted); |
| 63 | + } |
26 | 64 | } |
0 commit comments