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

cat.nyaa.nyaacore.component.IComponent Maven / Gradle / Ivy

There is a newer version: 3.12.2
Show newest version
package cat.nyaa.nyaacore.component;

public interface IComponent {

    /**
     * @param successor the new implementation about to replace this one
     * @return if the successor can be the new implementation for the Component type.
     */
    default boolean canReplaceMe(IComponent successor) {
        return (this.getClass() == successor.getClass());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy