@ SuppressWarnings ( "unchecked" ) private Class < PageEnum > getPageEnumClass ( ) { Class < PageEnum > res = null ; if ( object ( ) != null && object ( ) . pageEnumClass ( ) != null ) { res = ( Class < PageEnum > ) object ( ) . pageEnumClass ( ) ; } else if ( getFirstKeyPart ( ) instanceof Class && PageEnum . class . isAssignableFrom ( ( Class < ? > ) getFirstKeyPart ( ) ) ) { res = ( Class < PageEnum > ) getFirstKeyPart ( ) ; } return res ; }
Returns the page enum class associated to this model .