hydra.ext.com.microsoft.kusto.kql.UnionKind 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.com.microsoft.kusto.kql;
import java.io.Serializable;
public abstract class UnionKind implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.UnionKind");
public static final hydra.core.Name FIELD_NAME_INNER = new hydra.core.Name("inner");
public static final hydra.core.Name FIELD_NAME_OUTER = new hydra.core.Name("outer");
private UnionKind () {
}
public abstract R accept(Visitor visitor) ;
public interface Visitor {
R visit(Inner instance) ;
R visit(Outer instance) ;
}
public interface PartialVisitor extends Visitor {
default R otherwise(UnionKind instance) {
throw new IllegalStateException("Non-exhaustive patterns when matching: " + (instance));
}
default R visit(Inner instance) {
return otherwise((instance));
}
default R visit(Outer instance) {
return otherwise((instance));
}
}
public static final class Inner extends hydra.ext.com.microsoft.kusto.kql.UnionKind implements Serializable {
public Inner () {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Inner)) {
return false;
}
Inner o = (Inner) (other);
return true;
}
@Override
public int hashCode() {
return 0;
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
public static final class Outer extends hydra.ext.com.microsoft.kusto.kql.UnionKind implements Serializable {
public Outer () {
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Outer)) {
return false;
}
Outer o = (Outer) (other);
return true;
}
@Override
public int hashCode() {
return 0;
}
@Override
public R accept(Visitor visitor) {
return visitor.visit(this);
}
}
}