Class Getters


  • public class Getters
    extends Object
    Created by tchemit on 25/09/17.
    Author:
    Tony Chemit - dev@tchemit.fr
    • Constructor Detail

      • Getters

        public Getters()
    • Method Detail

      • getReadableProperties

        public static Set<String> getReadableProperties​(Class<?> beanType)
        Obtains all readable properties from a given type.
        Parameters:
        beanType - the type to seek
        Returns:
        the set of all readable properties for the given type
      • isNestedReadableProperty

        public static boolean isNestedReadableProperty​(Class<?> beanType,
                                                       String propertyName)
        Obtains all readable properties from a given type.
        Parameters:
        beanType - the type to seek
        propertyName - the property name to seek
        Returns:
        the set of all readable properties for the given type
      • getReadableType

        public static Class<?> getReadableType​(Class<?> beanType,
                                               String propertyName)