Repository navigation
Expand file tree
/
Copy pathTypeResolutionParameters.java
More file actions
100 lines (79 loc) · 2.85 KB
/
Copy pathTypeResolutionParameters.java
File metadata and controls
100 lines (79 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package graphql.execution;
import java.util.Map;
import graphql.language.Field;
import graphql.schema.GraphQLInterfaceType;
import graphql.schema.GraphQLSchema;
import graphql.schema.GraphQLUnionType;
public class TypeResolutionParameters {
private final GraphQLInterfaceType graphQLInterfaceType;
private final GraphQLUnionType graphQLUnionType;
private final Field field;
private final Object value;
private final Map<String, Object> argumentValues;
private final GraphQLSchema schema;
private TypeResolutionParameters(GraphQLInterfaceType graphQLInterfaceType, GraphQLUnionType graphQLUnionType,
Field field, Object value, Map<String, Object> argumentValues, GraphQLSchema schema) {
this.graphQLInterfaceType = graphQLInterfaceType;
this.graphQLUnionType = graphQLUnionType;
this.field = field;
this.value = value;
this.argumentValues = argumentValues;
this.schema = schema;
}
public GraphQLInterfaceType getGraphQLInterfaceType() {
return graphQLInterfaceType;
}
public GraphQLUnionType getGraphQLUnionType() {
return graphQLUnionType;
}
public Field getField() {
return field;
}
public Object getValue() {
return value;
}
public Map<String, Object> getArgumentValues() {
return argumentValues;
}
public GraphQLSchema getSchema() {
return schema;
}
public static Builder newParameters() {
return new Builder();
}
public static class Builder {
private Field field;
private GraphQLInterfaceType graphQLInterfaceType;
private GraphQLUnionType graphQLUnionType;
private Object value;
private Map<String, Object> argumentValues;
private GraphQLSchema schema;
public Builder field(Field field) {
this.field = field;
return this;
}
public Builder graphQLInterfaceType(GraphQLInterfaceType graphQLInterfaceType) {
this.graphQLInterfaceType = graphQLInterfaceType;
return this;
}
public Builder graphQLUnionType(GraphQLUnionType graphQLUnionType) {
this.graphQLUnionType = graphQLUnionType;
return this;
}
public Builder value(Object value) {
this.value = value;
return this;
}
public Builder argumentValues(Map<String, Object> argumentValues) {
this.argumentValues = argumentValues;
return this;
}
public Builder schema(GraphQLSchema schema) {
this.schema = schema;
return this;
}
public TypeResolutionParameters build() {
return new TypeResolutionParameters(graphQLInterfaceType, graphQLUnionType, field, value, argumentValues, schema);
}
}
}