io.github.amayaframework.di.scheme.AbstractScheme Maven / Gradle / Ivy
package io.github.amayaframework.di.scheme;
import java.util.Objects;
abstract class AbstractScheme implements Scheme {
protected final T target;
protected AbstractScheme(T target) {
this.target = Objects.requireNonNull(target);
}
@Override
public T getTarget() {
return target;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof AbstractScheme)) return false;
var that = (AbstractScheme>) o;
return target.equals(that.target);
}
@Override
public int hashCode() {
return target.hashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy