diff options
author | Thomas <> | 2023-05-11 17:24:01 +0200 |
---|---|---|
committer | Thomas <> | 2023-05-11 17:24:01 +0200 |
commit | 77ce26202ad7f1c36c2c5c385a4388b96d6bad65 (patch) | |
tree | 1d2b56ff726a7504c3e23609ab49e9166631da49 /eaaf_core_api/src/main | |
parent | 609a5582ac5874f8be6867b1caa55ed1f2de5767 (diff) | |
download | EAAF-Components-77ce26202ad7f1c36c2c5c385a4388b96d6bad65.tar.gz EAAF-Components-77ce26202ad7f1c36c2c5c385a4388b96d6bad65.tar.bz2 EAAF-Components-77ce26202ad7f1c36c2c5c385a4388b96d6bad65.zip |
refact(core): make data class Pair JSON serialisable
Diffstat (limited to 'eaaf_core_api/src/main')
-rw-r--r-- | eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/data/Pair.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/data/Pair.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/data/Pair.java index aabd7f00..56528f8d 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/data/Pair.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/data/Pair.java @@ -22,18 +22,20 @@ package at.gv.egiz.eaaf.core.impl.data; import java.io.Serializable; import java.text.MessageFormat; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@NoArgsConstructor +@AllArgsConstructor public class Pair<P1, P2> implements Serializable { private static final long serialVersionUID = 1022855782082259449L; - private final P1 first; - private final P2 second; + private P1 first; + private P2 second; private static final String TO_STRING_PATTERN = "[{0}:{2} {1}:{3}]"; - private Pair(final P1 newFirst, final P2 newSecond) { - this.first = newFirst; - this.second = newSecond; - } - public P1 getFirst() { return this.first; } |