状态模式应用1(去掉过多的if...else) 状态接口类
package com.fczfr.pattern.behavior.state.sample1;public class Client {public static void main(String[] args) {StateFactory factory = new StateFactory();factory.getState(State.STATUS_1).sampleOperation();}}