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

com.katalon.platform.internal.ExtensionImpl Maven / Gradle / Ivy

There is a newer version: 1.0.21
Show newest version
package com.katalon.platform.internal;

import com.katalon.platform.api.Extension;

public class ExtensionImpl implements Extension {

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((extensionId == null) ? 0 : extensionId.hashCode());
        result = prime * result + ((extensionPointId == null) ? 0 : extensionPointId.hashCode());
        result = prime * result + ((implementationClass == null) ? 0 : implementationClass.hashCode());
        result = prime * result + ((pluginId == null) ? 0 : pluginId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        ExtensionImpl other = (ExtensionImpl) obj;
        if (extensionId == null) {
            if (other.extensionId != null)
                return false;
        } else if (!extensionId.equals(other.extensionId))
            return false;
        if (extensionPointId == null) {
            if (other.extensionPointId != null)
                return false;
        } else if (!extensionPointId.equals(other.extensionPointId))
            return false;
        if (implementationClass == null) {
            if (other.implementationClass != null)
                return false;
        } else if (!implementationClass.equals(other.implementationClass))
            return false;
        if (pluginId == null) {
            if (other.pluginId != null)
                return false;
        } else if (!pluginId.equals(other.pluginId))
            return false;
        return true;
    }

    private final String pluginId;

    private final String extensionId;

    private final String extensionPointId;

    private final Object implementationClass;
    
    public ExtensionImpl(String pluginId, String extensionId, String extensionPointId, Object implementationClass) {
        this.pluginId = pluginId;
        this.extensionId = extensionId;
        this.extensionPointId = extensionPointId;
        this.implementationClass = implementationClass;
    }

    @Override
    public String getPluginId() {
        return pluginId;
    }

    @Override
    public String getExtensionId() {
        return extensionId;
    }

    @Override
    public String getExtensionPointId() {
        return extensionPointId;
    }

    @Override
    public Object getImplementationClass() {
        return implementationClass;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy