class DropView extends Statement {

    private final List<QualifiedName> names;
    private final boolean ifExists;

    public DropView(List<QualifiedName> names, boolean ifExists) {
        this.names = names;
        this.ifExists = ifExists;
    }

    public List<QualifiedName> names() {
        return names;
    }

    public boolean ifExists() {
        return ifExists;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DropView dropView = (DropView) o;

        if (ifExists != dropView.ifExists) return false;
        return names.equals(dropView.names);
    }

    @Override
    public int hashCode() {<FILL_FUNCTION_BODY>}

    @Override
    public String toString() {
        return "DropView{" +
               "names=" + names +
               ", ifExists=" + ifExists +
               '}';
    }

    @Override
    public <R, C> R accept(AstVisitor<R, C> visitor, C context) {
        return visitor.visitDropView(this, context);
    }
}

        int result = names.hashCode();
        result = 31 * result + (ifExists ? 1 : 0);
        return result;
    
<methods>public non-sealed void <init>() ,public R accept(AstVisitor<R,C>, C) <variables>