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

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

There is a newer version: 0.8.1
Show 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 WithOptionKeys implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.WithOptionKeys");
  
  public static final hydra.core.Name FIELD_NAME_SHORTEST_PATH = new hydra.core.Name("shortestPath");
  
  public static final hydra.core.Name FIELD_NAME_CONNECTED_COMPONENT = new hydra.core.Name("connectedComponent");
  
  public static final hydra.core.Name FIELD_NAME_PAGE_RANK = new hydra.core.Name("pageRank");
  
  public static final hydra.core.Name FIELD_NAME_PEER_PRESSURE = new hydra.core.Name("peerPressure");
  
  public static final hydra.core.Name FIELD_NAME_IO = new hydra.core.Name("io");
  
  public static final hydra.core.Name FIELD_NAME_WITH_OPTIONS_TOKENS = new hydra.core.Name("withOptionsTokens");
  
  public static final hydra.core.Name FIELD_NAME_WITH_OPTIONS_INDEXER = new hydra.core.Name("withOptionsIndexer");
  
  private WithOptionKeys () {
  
  }
  
  public abstract  R accept(Visitor visitor) ;
  
  public interface Visitor {
    R visit(ShortestPath instance) ;
    
    R visit(ConnectedComponent instance) ;
    
    R visit(PageRank instance) ;
    
    R visit(PeerPressure instance) ;
    
    R visit(Io instance) ;
    
    R visit(WithOptionsTokens instance) ;
    
    R visit(WithOptionsIndexer instance) ;
  }
  
  public interface PartialVisitor extends Visitor {
    default R otherwise(WithOptionKeys instance) {
      throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
    }
    
    default R visit(ShortestPath instance) {
      return otherwise((instance));
    }
    
    default R visit(ConnectedComponent instance) {
      return otherwise((instance));
    }
    
    default R visit(PageRank instance) {
      return otherwise((instance));
    }
    
    default R visit(PeerPressure instance) {
      return otherwise((instance));
    }
    
    default R visit(Io instance) {
      return otherwise((instance));
    }
    
    default R visit(WithOptionsTokens instance) {
      return otherwise((instance));
    }
    
    default R visit(WithOptionsIndexer instance) {
      return otherwise((instance));
    }
  }
  
  public static final class ShortestPath extends hydra.ext.org.apache.tinkerpop.gremlin.WithOptionKeys implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.ShortestPathConstants value;
    
    public ShortestPath (hydra.ext.org.apache.tinkerpop.gremlin.ShortestPathConstants value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof ShortestPath)) {
        return false;
      }
      ShortestPath o = (ShortestPath) (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 ConnectedComponent extends hydra.ext.org.apache.tinkerpop.gremlin.WithOptionKeys implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.ConnectedComponentConstants value;
    
    public ConnectedComponent (hydra.ext.org.apache.tinkerpop.gremlin.ConnectedComponentConstants value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof ConnectedComponent)) {
        return false;
      }
      ConnectedComponent o = (ConnectedComponent) (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 PageRank extends hydra.ext.org.apache.tinkerpop.gremlin.WithOptionKeys implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.PageRankConstants value;
    
    public PageRank (hydra.ext.org.apache.tinkerpop.gremlin.PageRankConstants value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof PageRank)) {
        return false;
      }
      PageRank o = (PageRank) (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 PeerPressure extends hydra.ext.org.apache.tinkerpop.gremlin.WithOptionKeys implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.PeerPressureConstants value;
    
    public PeerPressure (hydra.ext.org.apache.tinkerpop.gremlin.PeerPressureConstants value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof PeerPressure)) {
        return false;
      }
      PeerPressure o = (PeerPressure) (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 Io extends hydra.ext.org.apache.tinkerpop.gremlin.WithOptionKeys implements Serializable {
    public final hydra.ext.org.apache.tinkerpop.gremlin.IoOptionsKeys value;
    
    public Io (hydra.ext.org.apache.tinkerpop.gremlin.IoOptionsKeys value) {
      java.util.Objects.requireNonNull((value));
      this.value = value;
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof Io)) {
        return false;
      }
      Io o = (Io) (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 WithOptionsTokens extends hydra.ext.org.apache.tinkerpop.gremlin.WithOptionKeys implements Serializable {
    public WithOptionsTokens () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof WithOptionsTokens)) {
        return false;
      }
      WithOptionsTokens o = (WithOptionsTokens) (other);
      return true;
    }
    
    @Override
    public int hashCode() {
      return 0;
    }
    
    @Override
    public  R accept(Visitor visitor) {
      return visitor.visit(this);
    }
  }
  
  public static final class WithOptionsIndexer extends hydra.ext.org.apache.tinkerpop.gremlin.WithOptionKeys implements Serializable {
    public WithOptionsIndexer () {
    
    }
    
    @Override
    public boolean equals(Object other) {
      if (!(other instanceof WithOptionsIndexer)) {
        return false;
      }
      WithOptionsIndexer o = (WithOptionsIndexer) (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