Move everything into the core package
Some checks failed
zdm/undo-redo/pipeline/head There was a failure building this commit
Some checks failed
zdm/undo-redo/pipeline/head There was a failure building this commit
This commit is contained in:
parent
93e177cc35
commit
23aa60e65e
@ -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.
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.undoredo;
|
package dev.kske.undoredo.core;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package dev.kske.undoredo;
|
package dev.kske.undoredo.core;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
@ -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;
|
@ -7,5 +7,5 @@
|
|||||||
*/
|
*/
|
||||||
module dev.kske.undoredo {
|
module dev.kske.undoredo {
|
||||||
|
|
||||||
exports dev.kske.undoredo;
|
exports dev.kske.undoredo.core;
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
*
|
*
|
@ -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
|
@ -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;
|
||||||
}
|
}
|
Reference in New Issue
Block a user