Sha256: 241d60eed7920c364c9d48a1ef064ce388470c67288d859b0a6ccc4af8c188bf

Contents?: true

Size: 923 Bytes

Versions: 125

Compression:

Stored size: 923 Bytes

Contents

package org.embulk.plugin;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public class PluginType
{
    private final String name;

    // TODO accept isObject()/ObjectNode for complex PluginSource
    @JsonCreator
    public PluginType(String name)
    {
        if (name == null) {
            throw new NullPointerException("name must not be null");
        }
        this.name = name;
    }

    @JsonValue
    public String getName()
    {
        return name;
    }

    @Override
    public int hashCode()
    {
        return name.hashCode();
    }

    @Override
    public boolean equals(Object other)
    {
        if (!(other instanceof PluginType)) {
            return false;
        }
        PluginType o = (PluginType) other;
        return name.equals(o.name);
    }

    @Override
    public String toString()
    {
        return name;
    }
}

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
embulk-0.6.1 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.6.0 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.5.5 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.5.4 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.5.3 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.5.2 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.5.1 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.5.0 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.10 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.9 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.8 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.7 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.6 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.5 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.4 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.3 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.2 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.1 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.4.0 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.3.2 embulk-core/src/main/java/org/embulk/plugin/PluginType.java