Class TypeExtractor

java.lang.Object
no.sikt.graphitron.definitions.helpers.TypeExtractor

public class TypeExtractor extends Object
  • Constructor Details

    • TypeExtractor

      public TypeExtractor()
  • Method Details

    • extractType

      public static Class<?> extractType(Type type)
      Returns:
      If the type is a parameterized type such as a List or Set, return the class of the parameter, otherwise return the class of the argument.