@@ -35,28 +35,28 @@ private Types() {
35
35
/**
36
36
* Returns an array type whose elements are all instances of {@code componentType}.
37
37
*/
38
- public static Type arrayOf (Type elementType ) {
38
+ public static GenericArrayType arrayOf (Type elementType ) {
39
39
return Util .arrayOf (elementType );
40
40
}
41
41
42
42
/**
43
43
* Returns a Type that is a List of the given element type.
44
44
*/
45
- public static Type listOf (Type elementType ) {
45
+ public static ParameterizedType listOf (Type elementType ) {
46
46
return newParameterizedType (List .class , elementType );
47
47
}
48
48
49
49
/**
50
50
* Returns a Type that is a Set of the given element type.
51
51
*/
52
- public static Type setOf (Type elementType ) {
52
+ public static ParameterizedType setOf (Type elementType ) {
53
53
return newParameterizedType (Set .class , elementType );
54
54
}
55
55
56
56
/**
57
57
* Returns a Type that is a Stream of the given element type.
58
58
*/
59
- public static Type streamOf (Type elementType ) {
59
+ public static ParameterizedType streamOf (Type elementType ) {
60
60
return newParameterizedType (Stream .class , elementType );
61
61
}
62
62
@@ -66,7 +66,7 @@ public static Type streamOf(Type elementType) {
66
66
* @param valueElementType The type of the values in the Map.
67
67
* @return Type for a Map with String keys and the given value element type.
68
68
*/
69
- public static Type mapOf (Type valueElementType ) {
69
+ public static ParameterizedType mapOf (Type valueElementType ) {
70
70
return newParameterizedType (Map .class , String .class , valueElementType );
71
71
}
72
72
0 commit comments