public class ArrayTypes
extends java.lang.Object
| Constructor and Description |
|---|
ArrayTypes() |
| Modifier and Type | Method and Description |
|---|---|
LightweightTypeReference |
convertToList(ArrayTypeReference type) |
ArrayTypeReference |
tryConvertToArray(ParameterizedTypeReference typeReference)
Returns the array representation of this reference if its represents a sub-type of
Iterable. |
public ArrayTypeReference tryConvertToArray(ParameterizedTypeReference typeReference)
Iterable.
If the iterable's type is a primitive wrapper, the array is not the primitive array but
the wrapper array. May return null if the conversion is not possible.
This is the externalized and thereby
exchangeable implementation of ParameterizedTypeReference.tryConvertToArray().typeReference - the to-be-converted reference.ArrayTypeReference or null.public LightweightTypeReference convertToList(ArrayTypeReference type)