Sha256: eb1acb47fff235c53a3229f4ded1c73e1270f3ce00bd04b7f1c11f4ed4403f85

Contents?: true

Size: 1.15 KB

Versions: 30

Compression:

Stored size: 1.15 KB

Contents

package org.embulk.plugin;

import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;

public final class DefaultPluginType
        extends PluginType
{
    private DefaultPluginType(final String name)
    {
        super("default", name);
    }

    public static PluginType create(final String name)
    {
        if (name == null) {
            throw new NullPointerException("name must not be null");
        }
        return new DefaultPluginType(name);
    }

    @JsonValue
    public final String getJsonValue()
    {
        return this.getName();
    }

    @Override
    public final int hashCode()
    {
        return Objects.hash(getSourceType(), getName());
    }

    @Override
    public final boolean equals(final Object objectOther)
    {
        if (!(objectOther instanceof DefaultPluginType)) {
            return false;
        }
        final DefaultPluginType other = (DefaultPluginType) objectOther;
        return (this.getSourceType().equals(other.getSourceType()) &&
                this.getName().equals(other.getName()));
    }

    @Override
    public final String toString()
    {
        return this.getName();
    }
}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
embulk-0.8.39 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.39-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.38 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.38-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.37 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.37-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.36 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.36-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.35 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.35-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.34 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.34-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.33 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.33-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.32 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.32-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.31 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.31-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.30 embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java
embulk-0.8.30-java embulk-core/src/main/java/org/embulk/plugin/DefaultPluginType.java