From 77ce26202ad7f1c36c2c5c385a4388b96d6bad65 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 11 May 2023 17:24:01 +0200 Subject: refact(core): make data class Pair JSON serialisable --- .../main/java/at/gv/egiz/eaaf/core/impl/data/Pair.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'eaaf_core_api/src/main') 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 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; } -- cgit v1.2.3