@@ -13,7 +13,7 @@ public final class Field {
13
13
private final ObjectReader objectReader ;
14
14
private final ListReader listReader ;
15
15
private final boolean optional ;
16
- private final TypeMapping typeMapping ;
16
+ private final ScalarType scalarType ;
17
17
18
18
public static Field forString (String responseName , String fieldName , Map <String , Object > arguments ,
19
19
boolean optional ) {
@@ -55,12 +55,12 @@ public static <T> Field forList(String responseName, String fieldName, Map<Strin
55
55
}
56
56
57
57
public static <T > Field forCustomType (String responseName , String fieldName , Map <String , Object > arguments ,
58
- boolean optional , TypeMapping typeMapping ) {
59
- return new Field (Type .CUSTOM , responseName , fieldName , arguments , null , null , optional , typeMapping );
58
+ boolean optional , ScalarType scalarType ) {
59
+ return new Field (Type .CUSTOM , responseName , fieldName , arguments , null , null , optional , scalarType );
60
60
}
61
61
62
62
private Field (Type type , String responseName , String fieldName , Map <String , Object > arguments ,
63
- ObjectReader objectReader , ListReader listReader , boolean optional , TypeMapping typeMapping ) {
63
+ ObjectReader objectReader , ListReader listReader , boolean optional , ScalarType scalarType ) {
64
64
this .type = type ;
65
65
this .responseName = responseName ;
66
66
this .fieldName = fieldName ;
@@ -69,7 +69,7 @@ private Field(Type type, String responseName, String fieldName, Map<String, Obje
69
69
this .objectReader = objectReader ;
70
70
this .listReader = listReader ;
71
71
this .optional = optional ;
72
- this .typeMapping = typeMapping ;
72
+ this .scalarType = scalarType ;
73
73
}
74
74
75
75
public Type type () {
@@ -100,8 +100,8 @@ public ListReader listReader() {
100
100
return listReader ;
101
101
}
102
102
103
- public TypeMapping typeMapping () {
104
- return typeMapping ;
103
+ public ScalarType scalarType () {
104
+ return scalarType ;
105
105
}
106
106
107
107
public static enum Type {
@@ -135,6 +135,6 @@ public interface ListItemReader {
135
135
136
136
Boolean readBoolean () throws IOException ;
137
137
138
- <T > T readCustomType (TypeMapping typeMapping ) throws IOException ;
138
+ <T > T readCustomType (ScalarType scalarType ) throws IOException ;
139
139
}
140
140
}
0 commit comments