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

hydra.langs.java.syntax.SwitchBlockStatementGroup Maven / Gradle / Ivy

package hydra.langs.java.syntax;

import java.io.Serializable;

public class SwitchBlockStatementGroup implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/java/syntax.SwitchBlockStatementGroup");
  
  public final java.util.List labels;
  
  public final java.util.List statements;
  
  public SwitchBlockStatementGroup (java.util.List labels, java.util.List statements) {
    this.labels = labels;
    this.statements = statements;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof SwitchBlockStatementGroup)) {
      return false;
    }
    SwitchBlockStatementGroup o = (SwitchBlockStatementGroup) (other);
    return labels.equals(o.labels) && statements.equals(o.statements);
  }
  
  @Override
  public int hashCode() {
    return 2 * labels.hashCode() + 3 * statements.hashCode();
  }
  
  public SwitchBlockStatementGroup withLabels(java.util.List labels) {
    return new SwitchBlockStatementGroup(labels, statements);
  }
  
  public SwitchBlockStatementGroup withStatements(java.util.List statements) {
    return new SwitchBlockStatementGroup(labels, statements);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy