hydra.ext.org.apache.tinkerpop.gremlin.DateAddArgs 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 DateAddArgs implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/org/apache/tinkerpop/gremlin.DateAddArgs");
public static final hydra.core.Name FIELD_NAME_UNIT = new hydra.core.Name("unit");
public static final hydra.core.Name FIELD_NAME_DURATION = new hydra.core.Name("duration");
public final hydra.ext.org.apache.tinkerpop.gremlin.TraversalDTArgument unit;
public final hydra.ext.org.apache.tinkerpop.gremlin.IntegerArgument duration;
public DateAddArgs (hydra.ext.org.apache.tinkerpop.gremlin.TraversalDTArgument unit, hydra.ext.org.apache.tinkerpop.gremlin.IntegerArgument duration) {
java.util.Objects.requireNonNull((unit));
java.util.Objects.requireNonNull((duration));
this.unit = unit;
this.duration = duration;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof DateAddArgs)) {
return false;
}
DateAddArgs o = (DateAddArgs) (other);
return unit.equals(o.unit) && duration.equals(o.duration);
}
@Override
public int hashCode() {
return 2 * unit.hashCode() + 3 * duration.hashCode();
}
public DateAddArgs withUnit(hydra.ext.org.apache.tinkerpop.gremlin.TraversalDTArgument unit) {
java.util.Objects.requireNonNull((unit));
return new DateAddArgs(unit, duration);
}
public DateAddArgs withDuration(hydra.ext.org.apache.tinkerpop.gremlin.IntegerArgument duration) {
java.util.Objects.requireNonNull((duration));
return new DateAddArgs(unit, duration);
}
}