Class PropertyUtils


  • public abstract class PropertyUtils
    extends java.lang.Object

    BeanUtils class.

    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    ranger
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T getPathValue​(java.lang.Object bean, java.lang.String path, java.lang.Class<T> expectedClass)
      getPathValue
      static java.util.Collection<java.lang.String> getProperties​(java.lang.Object bean)
      getProperties
      • Methods inherited from class java.lang.Object

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

      • PropertyUtils

        public PropertyUtils()
    • Method Detail

      • getProperties

        public static java.util.Collection<java.lang.String> getProperties​(java.lang.Object bean)

        getProperties

        Parameters:
        bean - a Object object.
        Returns:
        a Collection object.
      • getPathValue

        public static <T> T getPathValue​(java.lang.Object bean,
                                         java.lang.String path,
                                         java.lang.Class<T> expectedClass)

        getPathValue

        Type Parameters:
        T - a T object.
        Parameters:
        bean - a Object object.
        path - a String object.
        expectedClass - a Class object.
        Returns:
        a T object.