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.8.24 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.24-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.23 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.23-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.22 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.22-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.21 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.21-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.20 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.20-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.19 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.19-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.18 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.18-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.17 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.17-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.16 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.16-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.15 embulk-core/src/main/java/org/embulk/plugin/PluginType.java
embulk-0.8.15-java embulk-core/src/main/java/org/embulk/plugin/PluginType.java