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

graphql.language.ObjectValue Maven / Gradle / Ivy

package graphql.language;


import java.util.ArrayList;
import java.util.List;

public class ObjectValue extends AbstractNode implements Value {

    private List objectFields = new ArrayList<>();

    public ObjectValue() {
    }

    public ObjectValue(List objectFields) {
        this.objectFields.addAll(objectFields);
    }

    public List getObjectFields() {
        return objectFields;
    }

    @Override
    public List getChildren() {
        List result = new ArrayList<>();
        result.addAll(objectFields);
        return result;
    }

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

        ObjectValue that = (ObjectValue) o;

        return true;

    }


    @Override
    public String toString() {
        return "ObjectValue{" +
                "objectFields=" + objectFields +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy