类 CopyUtils

java.lang.Object
com.cdkjframework.util.tool.CopyUtils

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

    • CopyUtils

      public CopyUtils()
  • 方法详细资料

    • getNullPropertyNames

      public static <S> String[] getNullPropertyNames(S source)
      获取到空值列
      类型参数:
      S - 源
      参数:
      source - 原数据源
      返回:
      返回结果
    • copyPropertiesList

      @Deprecated public static <S, T> List<T> copyPropertiesList(List<S> list, Class<T> target)
      已过时。
      拷贝 list 数据
      类型参数:
      S - 源
      参数:
      list - 源数据
      target - 要转换成的对象
      返回:
      返回对象数据集
    • copyNoNullPropertiesList

      @Deprecated public static <S, T> List<T> copyNoNullPropertiesList(List<S> list, Class<T> target)
      已过时。
      拷贝 list 数据
      类型参数:
      S - 源
      参数:
      list - 源数据
      target - 要转换成的对象
      返回:
      返回对象数据集
    • copyProperties

      public static <S, T> void copyProperties(S source, T target)
      拷贝数据
      类型参数:
      S - 源
      T - 目标
      参数:
      source - 原数据源
      target - 当前数据
    • copyNoNullProperties

      public static <S, T> void copyNoNullProperties(S source, T target)
      拷贝数据
      类型参数:
      S - 源
      T - 目标
      参数:
      source - 原数据源
      target - 当前数据
    • copyProperties

      public static <S, T> List<T> copyProperties(List<S> sourceList, Class<T> targetList)
      拷贝数据
      类型参数:
      S - 源
      T - 目标
      参数:
      sourceList - 原数据源
      targetList - 当前数据
    • copyProperties

      public static <S, T> T copyProperties(S source, Class<T> target)
      拷贝数据
      类型参数:
      S - 源
      T - 目标
      参数:
      source - 原数据源
      target - 当前数据
    • copyNoNullProperties

      public static <S, T> List<T> copyNoNullProperties(List<S> sourceList, Class<T> targetList)
      拷贝数据
      类型参数:
      S - 源
      T - 目标
      参数:
      sourceList - 原数据源
      targetList - 当前数据
    • copyNoNullProperties

      public static <S, T> T copyNoNullProperties(S source, Class<T> target)
      拷贝数据
      类型参数:
      S - 源
      T - 目标
      参数:
      source - 原数据源
      target - 当前数据