change: 代码清理、注释修复.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.serliunx.statemanagement.exception;
|
||||
|
||||
/**
|
||||
* 状态机异常
|
||||
*
|
||||
* @author <a href="mailto:serliunx@yeah.net">SerLiunx</a>
|
||||
* @version 1.0.0
|
||||
* @since 2024/12/28
|
||||
|
||||
@@ -13,6 +13,8 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* 状态机上下文集合, 用于构建参数封装
|
||||
*
|
||||
* @author <a href="mailto:serliunx@yeah.net">SerLiunx</a>
|
||||
* @version 1.0.0
|
||||
* @since 2025/2/2
|
||||
|
||||
@@ -9,7 +9,6 @@ package com.serliunx.statemanagement.machine.handler;
|
||||
* @version 1.0.0
|
||||
* @since 2024/12/28
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public final class StateHandlerProcessParams<S> {
|
||||
|
||||
/**
|
||||
@@ -29,7 +28,6 @@ public final class StateHandlerProcessParams<S> {
|
||||
* @param from 原状态
|
||||
* @param to 目标状态
|
||||
* @param attach 附加参数
|
||||
* @param bidirectionalStateManager 状态机内置的状态管理器
|
||||
*/
|
||||
public StateHandlerProcessParams(S from, S to, Object attach) {
|
||||
this.from = from;
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
package com.serliunx.statemanagement.machine.handler;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:serliunx@yeah.net">SerLiunx</a>
|
||||
* @version 1.0.0
|
||||
* @since 2024/12/28
|
||||
*/
|
||||
public class StateHandlerRegistry {
|
||||
|
||||
}
|
||||
@@ -11,7 +11,6 @@ import java.util.concurrent.Executor;
|
||||
* @version 1.0.0
|
||||
* @since 2024/12/28
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public final class StateHandlerWrapper<S> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -33,6 +33,7 @@ public interface StateManager<S> {
|
||||
|
||||
/**
|
||||
* 获取当前状态数量
|
||||
*
|
||||
* @return 数量
|
||||
*/
|
||||
int size();
|
||||
|
||||
Reference in New Issue
Block a user