We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35773f4 commit 01f1ed1Copy full SHA for 01f1ed1
src/main/java/org/gitlab4j/api/webhook/ChangeContainer.java
@@ -0,0 +1,30 @@
1
+package org.gitlab4j.api.webhook;
2
+
3
+import org.gitlab4j.api.utils.JacksonJson;
4
5
+public class ChangeContainer<T> {
6
7
+ private T previous;
8
+ private T current;
9
10
+ public T getPrevious() {
11
+ return previous;
12
+ }
13
14
+ public void setPrevious(T previous) {
15
+ this.previous = previous;
16
17
18
+ public T getCurrent() {
19
+ return current;
20
21
22
+ public void setCurrent(T current) {
23
+ this.current = current;
24
25
26
+ @Override
27
+ public String toString() {
28
+ return (JacksonJson.toJsonString(this));
29
30
+}
0 commit comments