Class BeanPlusUtil

java.lang.Object
cn.hutool.core.bean.BeanUtil
top.tangyh.basic.utils.BeanPlusUtil

public class BeanPlusUtil extends cn.hutool.core.bean.BeanUtil
Bean增强类工具类

把一个拥有对属性进行set和get方法的类,我们就可以称之为JavaBean。

Since:
3.1.2
Author:
zuihou
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T, E> List<T>
    toBeanList(Collection<E> sourceList, Class<T> destinationClass)
    转换 list
    static <T, E> com.baomidou.mybatisplus.core.metadata.IPage<T>
    toBeanPage(com.baomidou.mybatisplus.core.metadata.IPage<E> page, Class<T> destinationClass)
    转化Page 对象

    Methods inherited from class cn.hutool.core.bean.BeanUtil

    beanToMap, beanToMap, beanToMap, beanToMap, beanToMap, copyProperties, copyProperties, copyProperties, copyProperties, copyToList, copyToList, createDynaBean, descForEach, edit, fillBean, fillBeanWithMap, fillBeanWithMap, fillBeanWithMap, fillBeanWithMap, fillBeanWithMapIgnoreCase, findEditor, getBeanDesc, getFieldName, getFieldValue, getProperty, getPropertyDescriptor, getPropertyDescriptor, getPropertyDescriptorMap, getPropertyDescriptors, hasGetter, hasNullField, hasPublicField, hasSetter, isBean, isCommonFieldsEqual, isEmpty, isMatchName, isNotEmpty, isReadableBean, mapToBean, mapToBean, mapToBean, mapToBeanIgnoreCase, setFieldValue, setProperty, toBean, toBean, toBean, toBean, toBeanIgnoreCase, toBeanIgnoreError, trimStrFields

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BeanPlusUtil

      public BeanPlusUtil()
  • Method Details

    • toBeanList

      public static <T, E> List<T> toBeanList(Collection<E> sourceList, Class<T> destinationClass)
      转换 list
      Parameters:
      sourceList - 源集合
      destinationClass - 目标类型
      Returns:
      目标集合
    • toBeanPage

      public static <T, E> com.baomidou.mybatisplus.core.metadata.IPage<T> toBeanPage(com.baomidou.mybatisplus.core.metadata.IPage<E> page, Class<T> destinationClass)
      转化Page 对象
      Parameters:
      page - 分页对象
      destinationClass - 目标类型
      Returns:
      目录分页对象