Compare commits

..

5 Commits

Author SHA1 Message Date
Vyacheslav Boyko
f3870d5c50 Merge branch 'release/2.1.5' 2022-07-11 14:25:10 +03:00
Vyacheslav Boyko
3c68f07f55 Update versions for release 2022-07-11 14:25:04 +03:00
Vyacheslav Boyko
e004e92256 better inheritance 2022-07-11 14:24:53 +03:00
Vyacheslav Boyko
30c372b81a Update for next development version 2022-07-08 10:05:49 +03:00
Vyacheslav Boyko
6e6a70d7fd Merge tag '2.1.4' into develop
Tag release
2022-07-08 10:05:47 +03:00
2 changed files with 5 additions and 5 deletions

View File

@ -7,7 +7,7 @@
<groupId>me.bvn13.fsm</groupId>
<artifactId>fsm</artifactId>
<version>2.1.4</version>
<version>2.1.5</version>
<packaging>jar</packaging>

View File

@ -103,10 +103,10 @@ import java.util.function.Supplier;
*/
public class Fsm<T extends Fsm, E> {
private boolean done = false;
private State<E> initialState;
private State<E> currentState;
private State<E> previousState;
protected boolean done = false;
protected State<E> initialState;
protected State<E> currentState;
protected State<E> previousState;
private final Map<String, State<E>> states = new HashMap<>();
private final Map<String, Map<String, Condition<T, E>>> transitions = new HashMap<>();