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

hydra.langs.graphql.syntax.OperationDefinition_Sequence Maven / Gradle / Ivy

package hydra.langs.graphql.syntax;

import java.io.Serializable;

public class OperationDefinition_Sequence implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/graphql/syntax.OperationDefinition.Sequence");
  
  public final hydra.langs.graphql.syntax.OperationType operationType;
  
  public final java.util.Optional name;
  
  public final java.util.Optional variablesDefinition;
  
  public final java.util.Optional directives;
  
  public final hydra.langs.graphql.syntax.SelectionSet selectionSet;
  
  public OperationDefinition_Sequence (hydra.langs.graphql.syntax.OperationType operationType, java.util.Optional name, java.util.Optional variablesDefinition, java.util.Optional directives, hydra.langs.graphql.syntax.SelectionSet selectionSet) {
    this.operationType = operationType;
    this.name = name;
    this.variablesDefinition = variablesDefinition;
    this.directives = directives;
    this.selectionSet = selectionSet;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof OperationDefinition_Sequence)) {
      return false;
    }
    OperationDefinition_Sequence o = (OperationDefinition_Sequence) (other);
    return operationType.equals(o.operationType) && name.equals(o.name) && variablesDefinition.equals(o.variablesDefinition) && directives.equals(o.directives) && selectionSet.equals(o.selectionSet);
  }
  
  @Override
  public int hashCode() {
    return 2 * operationType.hashCode() + 3 * name.hashCode() + 5 * variablesDefinition.hashCode() + 7 * directives.hashCode() + 11 * selectionSet.hashCode();
  }
  
  public OperationDefinition_Sequence withOperationType(hydra.langs.graphql.syntax.OperationType operationType) {
    return new OperationDefinition_Sequence(operationType, name, variablesDefinition, directives, selectionSet);
  }
  
  public OperationDefinition_Sequence withName(java.util.Optional name) {
    return new OperationDefinition_Sequence(operationType, name, variablesDefinition, directives, selectionSet);
  }
  
  public OperationDefinition_Sequence withVariablesDefinition(java.util.Optional variablesDefinition) {
    return new OperationDefinition_Sequence(operationType, name, variablesDefinition, directives, selectionSet);
  }
  
  public OperationDefinition_Sequence withDirectives(java.util.Optional directives) {
    return new OperationDefinition_Sequence(operationType, name, variablesDefinition, directives, selectionSet);
  }
  
  public OperationDefinition_Sequence withSelectionSet(hydra.langs.graphql.syntax.SelectionSet selectionSet) {
    return new OperationDefinition_Sequence(operationType, name, variablesDefinition, directives, selectionSet);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy