Skip to content

Instantly share code, notes, and snippets.

Xavier Garcia Buils xgbuils

Block or report user

Report or block xgbuils

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
xgbuils /
Last active Dec 19, 2017
State Pattern with dependency injection
class ClosedGateState implements GateState {
private GateState openGateState;
public ClosedGateState() {
public void setOpenGateState(GateState openGateState) {
this.openGateState = openGateState
You can’t perform that action at this time.