Skip to content

Instantly share code, notes, and snippets.

Avatar

Xavier Garcia Buils xgbuils

View GitHub Profile
@xgbuils
xgbuils / ClosedGateState.java
Last active Dec 19, 2017
State Pattern with dependency injection
View ClosedGateState.java
class ClosedGateState implements GateState {
private GateState openGateState;
public ClosedGateState() {
}
public void setOpenGateState(GateState openGateState) {
this.openGateState = openGateState
}