Package io.avaje.jsonb
Class Types
- java.lang.Object
-
- io.avaje.jsonb.Types
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TypearrayOf(Type elementType)Returns an array type whose elements are all instances ofcomponentType.static TypelistOf(Type elementType)Returns a Type that is a List of the given element type.static TypemapOf(Type valueElementType)Return the Type for a Map with String keys and the given value element type.static ParameterizedTypenewParameterizedType(Type rawType, Type... typeArguments)Returns a new parameterized type, applyingtypeArgumentstorawType.static TypesetOf(Type elementType)Returns a Type that is a Set of the given element type.
-
-
-
Method Detail
-
arrayOf
public static Type arrayOf(Type elementType)
Returns an array type whose elements are all instances ofcomponentType.
-
listOf
public static Type listOf(Type elementType)
Returns a Type that is a List of the given element type.
-
setOf
public static Type setOf(Type elementType)
Returns a Type that is a Set of the given element type.
-
mapOf
public static Type mapOf(Type valueElementType)
Return the Type for a Map with String keys and the given value element type.- Parameters:
valueElementType- The type of the values in the Map.- Returns:
- Type for a Map with String keys and the given value element type.
-
newParameterizedType
public static ParameterizedType newParameterizedType(Type rawType, Type... typeArguments)
Returns a new parameterized type, applyingtypeArgumentstorawType. Use this method ifrawTypeis not enclosed in another type.
-
-