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

hydra.ext.org.apache.tinkerpop.gremlin.TraversalCardinalityArgumentAndObjects 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 class TraversalCardinalityArgumentAndObjects implements Serializable {
  public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.TraversalCardinalityArgumentAndObjects");
  
  public static final hydra.core.Name FIELD_NAME_CARDINALITY = new hydra.core.Name("cardinality");
  
  public static final hydra.core.Name FIELD_NAME_OBJECTS = new hydra.core.Name("objects");
  
  public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalCardinalityArgument cardinality;
  
  public final java.util.List objects;
  
  public TraversalCardinalityArgumentAndObjects (hydra.ext.org.apache.tinkerpop.gremlin.TraversalCardinalityArgument cardinality, java.util.List objects) {
    java.util.Objects.requireNonNull((cardinality));
    java.util.Objects.requireNonNull((objects));
    this.cardinality = cardinality;
    this.objects = objects;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof TraversalCardinalityArgumentAndObjects)) {
      return false;
    }
    TraversalCardinalityArgumentAndObjects o = (TraversalCardinalityArgumentAndObjects) (other);
    return cardinality.equals(o.cardinality) && objects.equals(o.objects);
  }
  
  @Override
  public int hashCode() {
    return 2 * cardinality.hashCode() + 3 * objects.hashCode();
  }
  
  public TraversalCardinalityArgumentAndObjects withCardinality(hydra.ext.org.apache.tinkerpop.gremlin.TraversalCardinalityArgument cardinality) {
    java.util.Objects.requireNonNull((cardinality));
    return new TraversalCardinalityArgumentAndObjects(cardinality, objects);
  }
  
  public TraversalCardinalityArgumentAndObjects withObjects(java.util.List objects) {
    java.util.Objects.requireNonNull((objects));
    return new TraversalCardinalityArgumentAndObjects(cardinality, objects);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy