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

hydra.ext.org.apache.tinkerpop.gremlin.TraversalOrder 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 TraversalOrder implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.TraversalOrder");
  
  public static final hydra.core.Name FIELD_NAME_INCR = new hydra.core.Name("incr");
  
  public static final hydra.core.Name FIELD_NAME_DECR = new hydra.core.Name("decr");
  
  public static final hydra.core.Name FIELD_NAME_ASC = new hydra.core.Name("asc");
  
  public static final hydra.core.Name FIELD_NAME_DESC = new hydra.core.Name("desc");
  
  public static final hydra.core.Name FIELD_NAME_SHUFFLE = new hydra.core.Name("shuffle");
  
  private TraversalOrder () {
  
  }
  
  public abstract  R accept(Visitor visitor) ;
  
  public interface Visitor {
    R visit(Incr instance) ;
    
    R visit(Decr instance) ;
    
    R visit(Asc instance) ;
    
    R visit(Desc instance) ;
    
    R visit(Shuffle instance) ;
  }
  
  public interface PartialVisitor extends Visitor {
    default R otherwise(TraversalOrder instance) {
      throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
    }
    
    default R visit(Incr instance) {
      return otherwise((instance));
    }
    
    default R visit(Decr instance) {
      return otherwise((instance));
    }
    
    default R visit(Asc instance) {
      return otherwise((instance));
    }
    
    default R visit(Desc instance) {
      return otherwise((instance));
    }
    
    default R visit(Shuffle instance) {
      return otherwise((instance));
    }
  }
  
  public static final class Incr extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalOrder implements Serializable {
    public Incr () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Incr)) {
        return false;
      }
      Incr o = (Incr) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class Decr extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalOrder implements Serializable {
    public Decr () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Decr)) {
        return false;
      }
      Decr o = (Decr) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class Asc extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalOrder implements Serializable {
    public Asc () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Asc)) {
        return false;
      }
      Asc o = (Asc) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class Desc extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalOrder implements Serializable {
    public Desc () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Desc)) {
        return false;
      }
      Desc o = (Desc) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class Shuffle extends hydra.ext.org.apache.tinkerpop.gremlin.TraversalOrder implements Serializable {
    public Shuffle () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Shuffle)) {
        return false;
      }
      Shuffle o = (Shuffle) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy