Package io.avaje.jsonb
Class Types
java.lang.Object
io.avaje.jsonb.Types
Factory methods for types.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeReturns an array type whose elements are all instances ofcomponentType.static TypeReturns a Type that is a List of the given element type.static TypeReturn 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 TypeReturns a Type that is a Set of the given element type.static TypeReturns a Type that is a Stream of the given element type.
-
Method Details
-
arrayOf
Returns an array type whose elements are all instances ofcomponentType. -
listOf
Returns a Type that is a List of the given element type. -
setOf
Returns a Type that is a Set of the given element type. -
streamOf
Returns a Type that is a Stream of the given element type. -
mapOf
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
Returns a new parameterized type, applyingtypeArgumentstorawType. Use this method ifrawTypeis not enclosed in another type.
-