类 ConstructorUtils

java.lang.Object
cool.scx.common.util.reflect.ConstructorUtils

public final class ConstructorUtils extends Object
  • 构造器详细资料

    • ConstructorUtils

      public ConstructorUtils()
  • 方法详细资料

    • findNoArgsConstructor

      public static <T> Constructor<T> findNoArgsConstructor(Class<T> type)
      寻找 无参构造函数 (不支持成员类)
      类型参数:
      T - a
      参数:
      type - c
      返回:
      a
    • findRecordConstructor

      public static <T> Constructor<T> findRecordConstructor(Class<T> type)
      寻找 Record 规范构造参数