Package com.vaadin.hilla.parser.utils
Class Generics
java.lang.Object
com.vaadin.hilla.parser.utils.Generics
Utility class for working with generics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExactIterableType(Class<?> cls) Returns the exact type of the elements in an iterable class.
-
Constructor Details
-
Generics
public Generics()
-
-
Method Details
-
getExactIterableType
Returns the exact type of the elements in an iterable class.- Parameters:
cls- the class to get the exact type of- Returns:
- the class of the elements in the iterable class, or an empty optional if it cannot be resolved, e.g. because the class is used as a raw type
-