All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xy.reflect.ui.control.MethodControlInputProxy Maven / Gradle / Ivy

package xy.reflect.ui.control;

import xy.reflect.ui.info.IInfo;
import xy.reflect.ui.undo.ModificationStack;

public class MethodControlInputProxy implements IMethodControlInput {

	protected IMethodControlInput base;

	public MethodControlInputProxy(IMethodControlInput base) {
		super();
		this.base = base;
	}

	public IMethodControlData getControlData() {
		return base.getControlData();
	}

	public IInfo getModificationsTarget() {
		return base.getModificationsTarget();
	}

	public ModificationStack getModificationStack() {
		return base.getModificationStack();
	}

	public IContext getContext() {
		return base.getContext();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((base == null) ? 0 : base.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		MethodControlInputProxy other = (MethodControlInputProxy) obj;
		if (base == null) {
			if (other.base != null)
				return false;
		} else if (!base.equals(other.base))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "MethodControlInputProxy [base=" + base + "]";
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy