graphql.language.NullValue Maven / Gradle / Ivy
package graphql.language;
import graphql.util.TraversalControl;
import graphql.util.TraverserContext;
import java.util.Collections;
import java.util.List;
public class NullValue extends AbstractNode implements Value {
public static final NullValue Null = new NullValue();
private NullValue() {
}
@Override
public List getChildren() {
return Collections.emptyList();
}
@Override
public boolean isEqualTo(Node o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
return true;
}
@Override
public NullValue deepCopy() {
return this;
}
@Override
public String toString() {
return "NullValue{" +
'}';
}
@Override
public TraversalControl accept(TraverserContext context, NodeVisitor visitor) {
return visitor.visitNullValue(this, context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy