hydra.ext.org.apache.tinkerpop.gremlin.PropertyArgs 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 PropertyArgs implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.PropertyArgs");
public static final hydra.core.Name FIELD_NAME_CARDINALITY_OBJECTS = new hydra.core.Name("cardinalityObjects");
public static final hydra.core.Name FIELD_NAME_OBJECTS = new hydra.core.Name("objects");
public static final hydra.core.Name FIELD_NAME_OBJECT = new hydra.core.Name("object");
public static final hydra.core.Name FIELD_NAME_CARDINALITY_OBJECT = new hydra.core.Name("cardinalityObject");
private PropertyArgs () {
}
public abstract R accept(Visitor visitor) ;
public interface Visitor {
R visit(CardinalityObjects instance) ;
R visit(Objects instance) ;
R visit(Object_ instance) ;
R visit(CardinalityObject instance) ;
}
public interface PartialVisitor extends Visitor {
default R otherwise(PropertyArgs instance) {
throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
}
default R visit(CardinalityObjects instance) {
return otherwise((instance));
}
default R visit(Objects instance) {
return otherwise((instance));
}
default R visit(Object_ instance) {
return otherwise((instance));
}
default R visit(CardinalityObject instance) {
return otherwise((instance));
}
}
public static final class CardinalityObjects extends hydra.ext.org.apache.tinkerpop.gremlin.PropertyArgs implements Serializable {
public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalCardinalityArgumentAndObjects value;
public CardinalityObjects (hydra.ext.org.apache.tinkerpop.gremlin.TraversalCardinalityArgumentAndObjects value) {
java.util.Objects.requireNonNull((value));
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof CardinalityObjects)) {
return false;
}
CardinalityObjects o = (CardinalityObjects) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Objects extends hydra.ext.org.apache.tinkerpop.gremlin.PropertyArgs implements Serializable {
public final java.util.List value;
public Objects (java.util.List value) {
java.util.Objects.requireNonNull((value));
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Objects)) {
return false;
}
Objects o = (Objects) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Object_ extends hydra.ext.org.apache.tinkerpop.gremlin.PropertyArgs implements Serializable {
public final hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgument value;
public Object_ (hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgument value) {
java.util.Objects.requireNonNull((value));
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Object_)) {
return false;
}
Object_ o = (Object_) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class CardinalityObject extends hydra.ext.org.apache.tinkerpop.gremlin.PropertyArgs implements Serializable {
public final hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgumentAndTraversalCardinalityArgument value;
public CardinalityObject (hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgumentAndTraversalCardinalityArgument value) {
java.util.Objects.requireNonNull((value));
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof CardinalityObject)) {
return false;
}
CardinalityObject o = (CardinalityObject) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
}