Basic API Structure #2

Merged
kske merged 12 commits from f/basics into develop 2021-12-11 21:45:59 +01:00
8 changed files with 16 additions and 16 deletions
Showing only changes of commit 23aa60e65e - Show all commits

View File

@ -1,4 +1,4 @@
package dev.kske.undoredo; package dev.kske.undoredo.core;
/** /**
* Base interface for changes to be registered in an undo manager. * Base interface for changes to be registered in an undo manager.

View File

@ -1,4 +1,4 @@
package dev.kske.undoredo; package dev.kske.undoredo.core;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package dev.kske.undoredo; package dev.kske.undoredo.core;
import java.util.*; import java.util.*;

View File

@ -5,4 +5,4 @@
* @author Kai S. K. Engelbart * @author Kai S. K. Engelbart
* @since 0.0.1 * @since 0.0.1
*/ */
package dev.kske.undoredo; package dev.kske.undoredo.core;

View File

@ -7,5 +7,5 @@
*/ */
module dev.kske.undoredo { module dev.kske.undoredo {
exports dev.kske.undoredo; exports dev.kske.undoredo.core;
} }

View File

@ -1,4 +1,4 @@
package dev.kske.undoredo; package dev.kske.undoredo.core;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;
@ -33,7 +33,7 @@ class ChangeManagerTest {
manager.addChange(change); manager.addChange(change);
assertSame(1, wrapper.value); assertSame(1, wrapper.value);
} }
/** /**
* Tests the consistency of the change list. * Tests the consistency of the change list.
* *

View File

@ -1,17 +1,17 @@
package dev.kske.undoredo; package dev.kske.undoredo.core;
/** /**
* @author Kai S. K. Engelbart * @author Kai S. K. Engelbart
* @since 0.0.1 * @since 0.0.1
*/ */
class IntChange implements Change { class IntChange implements Change {
private final IntWrapper wrapper; private final IntWrapper wrapper;
private final int value; private final int value;
IntChange(IntWrapper wrapper, int value) { IntChange(IntWrapper wrapper, int value) {
this.wrapper = wrapper; this.wrapper = wrapper;
this.value = value; this.value = value;
} }
@Override @Override

View File

@ -1,10 +1,10 @@
package dev.kske.undoredo; package dev.kske.undoredo.core;
/** /**
* @author Kai S. K. Engelbart * @author Kai S. K. Engelbart
* @since 0.0.1 * @since 0.0.1
*/ */
class IntWrapper { class IntWrapper {
int value; int value;
} }