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

io.github.amayaframework.di.scheme.AbstractScheme Maven / Gradle / Ivy

Go to download

A framework responsible for monitoring and automating the dependency injection process.

There is a newer version: 2.2.0
Show newest version
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