Class Generics

java.lang.Object
com.vaadin.hilla.parser.utils.Generics

public class Generics extends Object
Utility class for working with generics.
  • Constructor Details

    • Generics

      public Generics()
  • Method Details

    • getExactIterableType

      public static Optional<Type> getExactIterableType(Class<?> cls)
      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