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

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

package hydra.langs.java.syntax;

import java.io.Serializable;

public class MethodReference_Super implements Serializable {
  public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/java/syntax.MethodReference.Super");
  
  public final java.util.List typeArguments;
  
  public final hydra.langs.java.syntax.Identifier identifier;
  
  public final Boolean super_;
  
  public MethodReference_Super (java.util.List typeArguments, hydra.langs.java.syntax.Identifier identifier, Boolean super_) {
    this.typeArguments = typeArguments;
    this.identifier = identifier;
    this.super_ = super_;
  }
  
  @Override
  public boolean equals(Object other) {
    if (!(other instanceof MethodReference_Super)) {
      return false;
    }
    MethodReference_Super o = (MethodReference_Super) (other);
    return typeArguments.equals(o.typeArguments) && identifier.equals(o.identifier) && super_.equals(o.super_);
  }
  
  @Override
  public int hashCode() {
    return 2 * typeArguments.hashCode() + 3 * identifier.hashCode() + 5 * super_.hashCode();
  }
  
  public MethodReference_Super withTypeArguments(java.util.List typeArguments) {
    return new MethodReference_Super(typeArguments, identifier, super_);
  }
  
  public MethodReference_Super withIdentifier(hydra.langs.java.syntax.Identifier identifier) {
    return new MethodReference_Super(typeArguments, identifier, super_);
  }
  
  public MethodReference_Super withSuper(Boolean super_) {
    return new MethodReference_Super(typeArguments, identifier, super_);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy