技术栈

state-pattern

long316
9 小时前
java·学习·程序人生·设计模式·状态模式·state-pattern
状态设计模式状态设计模式是一种行为设计模式,它允许对象在其内部状态更改时更改其行为,就像它在运行时切换到不同的类一样。