Class TypeReflectHelper

java.lang.Object
io.ebeaninternal.server.type.TypeReflectHelper

public final class TypeReflectHelper extends Object
  • Constructor Details

    • TypeReflectHelper

      public TypeReflectHelper()
  • Method Details

    • getParams

      public static Class<?>[] getParams(Class<?> cls, Class<?> matchRawType)
    • asEnumClass

      public static Class<? extends Enum<?>> asEnumClass(Type valueType)
      Return the enum class for this type taking into account wildcard type.
    • isEnumType

      public static boolean isEnumType(Type valueType)
      Return true if the type is an enum.
    • getMapKeyType

      public static Class<?> getMapKeyType(Type genericType)
      Return the type of the map key.
    • getValueType

      public static Type getValueType(Type collectionType)
      Return the value type of a collection type (list, set, map values).