io.github.amayaframework.di.scheme.AbstractScheme Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amaya-di Show documentation
Show all versions of amaya-di Show documentation
A framework responsible for monitoring and automating the dependency injection process.
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