private static List < Method > getPropertyMethods ( Class entityClass ) { List < Method > result = new ArrayList < Method > ( ) ; for ( Method m : entityClass . getMethods ( ) ) { if ( m . getParameterTypes ( ) . length == 0 && m . getName ( ) . startsWith ( "get" ) && m . getReturnType ( ) != void . class ) { if ( m . getName ( ) . equals ( "getClass" ) ) continue ; result . add ( m ) ; } } return result ; }
Returns the property - accessors for the specified class ;