/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.api.debug.shared.model.impl.action;
import org.eclipse.che.api.debug.shared.model.action.Action;
/**
* @author Anatoliy Bazko
*/
public class ActionImpl implements Action {
private final TYPE type;
public ActionImpl(TYPE type) {
this.type = type;
}
@Override
public TYPE getType() {
return type;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof ActionImpl)) return false;
ActionImpl action = (ActionImpl)o;
return type == action.type;
}
@Override
public int hashCode() {
return type != null ? type.hashCode() : 0;
}
}