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