hydra.ext.org.apache.tinkerpop.gremlin.TraversalColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.org.apache.tinkerpop.gremlin;
import java.io.Serializable;
public abstract class TraversalColumn implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.TraversalColumn");
public static final hydra.core.Name FIELD_NAME_KEYS = new hydra.core.Name("keys");
public static final hydra.core.Name FIELD_NAME_VALUES = new hydra.core.Name("values");
private TraversalColumn () {
}
public abstract R accept(Visitor visitor) ;
public interface Visitor {
R visit(Keys instance) ;
R visit(Values instance) ;
}
public interface PartialVisitor extends Visitor {
default R otherwise(TraversalColumn instance) {
throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
}
default R visit(Keys instance) {
return otherwise((instance));
}
default R visit(Values instance) {
return otherwise((instance));
}
}
public static final class Keys extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalColumn implements Serializable {
public Keys () {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Keys)) {
return false;
}
Keys o = (Keys) (other);
return true;
}
@Override
public int hashCode() {
return 0;
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Values extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalColumn implements Serializable {
public Values () {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Values)) {
return false;
}
Values o = (Values) (other);
return true;
}
@Override
public int hashCode() {
return 0;
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
}