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

graphql.language.NonNullType Maven / Gradle / Ivy

There is a newer version: 230521-nf-execution
Show newest version
package graphql.language;


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

public class NonNullType extends AbstractNode implements Type {

    private Type type;

    public NonNullType() {
    }

    public NonNullType(Type type) {
        this.type = type;
    }

    public Type getType() {
        return type;
    }

    public void setType(ListType type) {
        this.type = type;
    }

    public void setType(TypeName type) {
        this.type = type;
    }

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

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

        return true;

    }

    @Override
    public String toString() {
        return "NonNullType{" +
                "type=" + type +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy