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

org.reploop.parser.json.tree.Null Maven / Gradle / Ivy

package org.reploop.parser.json.tree;

import org.reploop.parser.json.AstVisitor;

/**
 * Null value.
 *
 * @author George Cao([email protected])
 * @since 2017-01-23 16
 */
public class Null extends Value {

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

    @Override
    public int hashCode() {
        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        return obj instanceof Null;
    }

    @Override
    public String toString() {
        return "null";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy