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

skadistats.clarity.event.UsagePointProvider Maven / Gradle / Ivy

Go to download

Clarity is an open source replay parser for Dota 2, CSGO, CS2 and Deadlock written in Java.

There is a newer version: 3.1.1
Show newest version
package skadistats.clarity.event;

import java.lang.annotation.Annotation;

public class UsagePointProvider {

    private final Class eventClass;
    private final Class providerClass;
    private final Provides providesAnnotation;

    public UsagePointProvider(Class eventClass, Class providerClass, Provides providesAnnotation) {
        this.eventClass = eventClass;
        this.providerClass = providerClass;
        this.providesAnnotation = providesAnnotation;
    }

    public Class getEventClass() {
        return eventClass;
    }

    public Class getProviderClass() {
        return providerClass;
    }

    public Provides getProvidesAnnotation() {
        return providesAnnotation;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        var that = (UsagePointProvider) o;

        if (!eventClass.equals(that.eventClass)) return false;
        if (!providerClass.equals(that.providerClass)) return false;
        if (!providesAnnotation.equals(that.providesAnnotation)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        var result = eventClass.hashCode();
        result = 31 * result + providerClass.hashCode();
        result = 31 * result + providesAnnotation.hashCode();
        return result;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy