graphql.language.Document Maven / Gradle / Ivy
package graphql.language;
import java.util.ArrayList;
import java.util.List;
public class Document extends AbstractNode {
private List definitions = new ArrayList<>();
public Document() {
}
public Document(List definitions) {
this.definitions = definitions;
}
public List getDefinitions() {
return definitions;
}
public void setDefinitions(List definitions) {
this.definitions = definitions;
}
@Override
public List getChildren() {
return new ArrayList<>(definitions);
}
@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 "Document{" +
"definitions=" + definitions +
'}';
}
}