hydra.ext.org.apache.tinkerpop.gremlin.TraversalMergeArgumentAndGenericLiteralMapNullableArgument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
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 TraversalMergeArgumentAndGenericLiteralMapNullableArgument implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.TraversalMergeArgumentAndGenericLiteralMapNullableArgument");
public static final hydra.core.Name FIELD_NAME_MERGE = new hydra.core.Name("merge");
public static final hydra.core.Name FIELD_NAME_MAP = new hydra.core.Name("map");
public static final hydra.core.Name FIELD_NAME_CARDINALITY = new hydra.core.Name("cardinality");
public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalMergeArgument merge;
public final hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgument map;
public final hydra.util.Opt cardinality;
public TraversalMergeArgumentAndGenericLiteralMapNullableArgument (hydra.ext.org.apache.tinkerpop.gremlin.TraversalMergeArgument merge, hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgument map, hydra.util.Opt cardinality) {
java.util.Objects.requireNonNull((merge));
java.util.Objects.requireNonNull((map));
java.util.Objects.requireNonNull((cardinality));
this.merge = merge;
this.map = map;
this.cardinality = cardinality;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof TraversalMergeArgumentAndGenericLiteralMapNullableArgument)) {
return false;
}
TraversalMergeArgumentAndGenericLiteralMapNullableArgument o = (TraversalMergeArgumentAndGenericLiteralMapNullableArgument) (other);
return merge.equals(o.merge) && map.equals(o.map) && cardinality.equals(o.cardinality);
}
@Override
public int hashCode() {
return 2 * merge.hashCode() + 3 * map.hashCode() + 5 * cardinality.hashCode();
}
public TraversalMergeArgumentAndGenericLiteralMapNullableArgument withMerge(hydra.ext.org.apache.tinkerpop.gremlin.TraversalMergeArgument merge) {
java.util.Objects.requireNonNull((merge));
return new TraversalMergeArgumentAndGenericLiteralMapNullableArgument(merge, map, cardinality);
}
public TraversalMergeArgumentAndGenericLiteralMapNullableArgument withMap(hydra.ext.org.apache.tinkerpop.gremlin.GenericLiteralMapNullableArgument map) {
java.util.Objects.requireNonNull((map));
return new TraversalMergeArgumentAndGenericLiteralMapNullableArgument(merge, map, cardinality);
}
public TraversalMergeArgumentAndGenericLiteralMapNullableArgument withCardinality(hydra.util.Opt cardinality) {
java.util.Objects.requireNonNull((cardinality));
return new TraversalMergeArgumentAndGenericLiteralMapNullableArgument(merge, map, cardinality);
}
}