Last change
on this file was df7f390, checked in by Kristijan <kristijanzafirovski26@…>, 2 days ago |
Added frontend functionality for changes and refactored code
|
-
Property mode
set to
100644
|
File size:
1016 bytes
|
Rev | Line | |
---|
[df7f390] | 1 | public class Change {
|
---|
| 2 | private String attribute;
|
---|
| 3 | private String oldValue;
|
---|
| 4 | private String newValue;
|
---|
| 5 |
|
---|
| 6 | public Change(String attribute, String oldValue, String newValue) {
|
---|
| 7 | this.attribute = attribute;
|
---|
| 8 | this.oldValue = oldValue;
|
---|
| 9 | this.newValue = newValue;
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | public String getAttribute() {
|
---|
| 13 | return attribute;
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | public void setAttribute(String attribute) {
|
---|
| 17 | this.attribute = attribute;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | public String getOldValue() {
|
---|
| 21 | return oldValue;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | public void setOldValue(String oldValue) {
|
---|
| 25 | this.oldValue = oldValue;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | public String getNewValue() {
|
---|
| 29 | return newValue;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | public void setNewValue(String newValue) {
|
---|
| 33 | this.newValue = newValue;
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | @Override
|
---|
| 37 | public String toString() {
|
---|
| 38 | return "Change{" +
|
---|
| 39 | "attribute='" + attribute + '\'' +
|
---|
| 40 | ", oldValue='" + oldValue + '\'' +
|
---|
| 41 | ", newValue='" + newValue + '\'' +
|
---|
| 42 | '}';
|
---|
| 43 | }
|
---|
| 44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.