MetadataVersion increment ( ) { String [ ] ids = idents ; String lastId = ids [ ids . length - 1 ] ; if ( isInt ( lastId ) ) { int intId = Integer . parseInt ( lastId ) ; ids [ ids . length - 1 ] = String . valueOf ( ++ intId ) ; } else { ids = Arrays . copyOf ( ids , ids . length + 1 ) ; ids [ ids . length - 1 ] = String . valueOf ( 1 ) ; } return new MetadataVersion ( ids ) ; }
Increments the metadata version .