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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy