类 BeanUtils


  • public class BeanUtils
    extends org.apache.commons.beanutils.BeanUtils
    作者:
    youta
    • 构造器概要

      构造器 
      构造器 说明
      BeanUtils()  
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static <T> T copy​(Object source, Class<T> tClass)
      source属性为空的不赋值给target
      static <T> T copy​(Object source, T target)
      source属性为空的不赋值给target
      private static String[] getNullPropertyNames​(Object source)  
      • 从类继承的方法 org.apache.commons.beanutils.BeanUtils

        cloneBean, copyProperties, copyProperty, createCache, describe, getArrayProperty, getCacheFast, getDebug, getIndexedProperty, getIndexedProperty, getMappedProperty, getMappedProperty, getNestedProperty, getProperty, getSimpleProperty, initCause, populate, setCacheFast, setDebug, setProperty
    • 构造器详细资料

      • BeanUtils

        public BeanUtils()
    • 方法详细资料

      • copy

        public static <T> T copy​(Object source,
                                 Class<T> tClass)
        source属性为空的不赋值给target
        参数:
        source - 源头
        tClass - 目标类型
        返回:
        T 目标
      • copy

        public static <T> T copy​(Object source,
                                 T target)
        source属性为空的不赋值给target
        参数:
        source - 源头
        target - 目标类型
        返回:
        T 目标
      • getNullPropertyNames

        private static String[] getNullPropertyNames​(Object source)