summaryrefslogtreecommitdiff
path: root/eaaf_core_api
diff options
context:
space:
mode:
Diffstat (limited to 'eaaf_core_api')
-rw-r--r--eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/impl/data/Pair.java16
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;
}