hydra.langs.graphql.syntax.ImplementsInterfaces Maven / Gradle / Ivy
package hydra.langs.graphql.syntax;
import java.io.Serializable;
public abstract class ImplementsInterfaces implements Serializable {
public static final hydra.core.Name NAME = new hydra.core.Name("hydra/langs/graphql/syntax.ImplementsInterfaces");
private ImplementsInterfaces () {
}
public abstract R accept(Visitor visitor) ;
public interface Visitor {
R visit(Sequence instance) ;
R visit(Sequence2 instance) ;
}
public interface PartialVisitor extends Visitor {
default R otherwise(ImplementsInterfaces instance) {
throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
}
default R visit(Sequence instance) {
return otherwise((instance));
}
default R visit(Sequence2 instance) {
return otherwise((instance));
}
}
public static final class Sequence extends hydra.langs.graphql.syntax.ImplementsInterfaces implements Serializable {
public final hydra.langs.graphql.syntax.ImplementsInterfaces_Sequence value;
public Sequence (hydra.langs.graphql.syntax.ImplementsInterfaces_Sequence value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Sequence)) {
return false;
}
Sequence o = (Sequence) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Sequence2 extends hydra.langs.graphql.syntax.ImplementsInterfaces implements Serializable {
public final hydra.langs.graphql.syntax.ImplementsInterfaces_Sequence2 value;
public Sequence2 (hydra.langs.graphql.syntax.ImplementsInterfaces_Sequence2 value) {
this.value = value;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Sequence2)) {
return false;
}
Sequence2 o = (Sequence2) (other);
return value.equals(o.value);
}
@Override
public int hashCode() {
return 2 * value.hashCode();
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy