package stream.flarebot.flarebot.objects;

import net.dv8tion.jda.core.requests.RestAction;
import stream.flarebot.flarebot.commands.Command;

public class RestActionWrapper {

    private final RestAction action;
    private final Class<? extends Command> origin;

    public RestActionWrapper(RestAction action, Class<? extends Command> origin) {

        this.action = action;
        this.origin = origin;
    }

    public RestAction getAction() {
        return action;
    }

    public Class<? extends Command> getOrigin() {
        return origin;
    }
}

@@ -554,11 +554,530 @@
 n;%0A    %7D
+%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        RestActionWrapper wrapper = (RestActionWrapper) o;%0A%0A        if (!getAction().equals(wrapper.getAction())) return false;%0A        return getOrigin().equals(wrapper.getOrigin());%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int result = getAction().hashCode();%0A        result = 31 * result + getOrigin().hashCode();%0A        return result;%0A    %7D
 %0A%7D%0A

Implement to equals and hashcode