Authored by chenchao

add s m

package com.yohoufo.order.stateMachine;
/**
* Created by chao.chen on 2019/1/3.
*/
public interface Func<R> {
R call();
}
... ...
package com.yohoufo.order.stateMachine;
/**
* Created by chao.chen on 2019/1/3.
*/
public class StateMachine<S, T> {
protected final Func<S> stateAccessor;
public StateMachine(){
stateAccessor = new Func<S>() {
@Override
public S call() {
return null;
}
};
}
}
... ...