public static int extractVersionFromSchemaName ( String clz_name ) { int idx = clz_name . lastIndexOf ( ' ' ) ; if ( idx == - 1 ) return - 1 ; try { return Integer . valueOf ( clz_name . substring ( idx + 1 ) ) ; } catch ( NumberFormatException ex ) { return - 1 ; } }
Extract the version number from the schema class name . Returns - 1 if there s no version number at the end of the classname .