All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hydra.ext.org.apache.tinkerpop.gremlin.OptionArgs Maven / Gradle / Ivy

The newest version!
// Note: this is an automatically generated file. Do not edit.

package hydra.ext.org.apache.tinkerpop.gremlin;

import java.io.Serializable;

public abstract class OptionArgs implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.OptionArgs");
  
  public static final hydra.core.Name FIELD_NAME_PREDICATE_TRAVERSAL = new hydra.core.Name("predicateTraversal");
  
  public static final hydra.core.Name FIELD_NAME_MERGE_MAP = new hydra.core.Name("mergeMap");
  
  public static final hydra.core.Name FIELD_NAME_MERGE_TRAVERSAL = new hydra.core.Name("mergeTraversal");
  
  public static final hydra.core.Name FIELD_NAME_OBJECT_TRAVERSAL = new hydra.core.Name("objectTraversal");
  
  public static final hydra.core.Name FIELD_NAME_TRAVERSAL = new hydra.core.Name("traversal");
  
  private OptionArgs () {
  
  }
  
  public abstract  R accept(Visitor visitor) ;
  
  public interface Visitor {
    R visit(PredicateTraversal instance) ;
    
    R visit(MergeMap instance) ;
    
    R visit(MergeTraversal instance) ;
    
    R visit(ObjectTraversal instance) ;
    
    R visit(Traversal instance) ;
  }
  
  public interface PartialVisitor extends Visitor {
    default R otherwise(OptionArgs instance) {
      throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
    }
    
    default R visit(PredicateTraversal instance) {
      return otherwise((instance));
    }
    
    default R visit(MergeMap instance) {
      return otherwise((instance));
    }
    
    default R visit(MergeTraversal instance) {
      return otherwise((instance));
    }
    
    default R visit(ObjectTraversal instance) {
      return otherwise((instance));
    }
    
    default R visit(Traversal instance) {
      return otherwise((instance));
    }
  }
  
  public static final class PredicateTraversal extends hydra.ext.org.apache.tinkerpop.gremlin.OptionArgs implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalPredicateAndNestedTraversal value;
    
    public PredicateTraversal (hydra.ext.org.apache.tinkerpop.gremlin.TraversalPredicateAndNestedTraversal value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof PredicateTraversal)) {
        return false;
      }
      PredicateTraversal o = (PredicateTraversal) (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 MergeMap extends hydra.ext.org.apache.tinkerpop.gremlin.OptionArgs implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalMergeArgumentAndGenericLiteralMapNullableArgument value;
    
    public MergeMap (hydra.ext.org.apache.tinkerpop.gremlin.TraversalMergeArgumentAndGenericLiteralMapNullableArgument value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof MergeMap)) {
        return false;
      }
      MergeMap o = (MergeMap) (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 MergeTraversal extends hydra.ext.org.apache.tinkerpop.gremlin.OptionArgs implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalMergeArgumentAndNestedTraversal value;
    
    public MergeTraversal (hydra.ext.org.apache.tinkerpop.gremlin.TraversalMergeArgumentAndNestedTraversal value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof MergeTraversal)) {
        return false;
      }
      MergeTraversal o = (MergeTraversal) (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 ObjectTraversal extends hydra.ext.org.apache.tinkerpop.gremlin.OptionArgs implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralArgumentAndNestedTraversal value;
    
    public ObjectTraversal (hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralArgumentAndNestedTraversal value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof ObjectTraversal)) {
        return false;
      }
      ObjectTraversal o = (ObjectTraversal) (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 Traversal extends hydra.ext.org.apache.tinkerpop.gremlin.OptionArgs implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.NestedTraversal value;
    
    public Traversal (hydra.ext.org.apache.tinkerpop.gremlin.NestedTraversal value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Traversal)) {
        return false;
      }
      Traversal o = (Traversal) (other);
      return value.equals(o.value);
    }
    
    @Override
    public int hashCode() {
      return 2 * value.hashCode();
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy