public Version nextPreRelease ( ) { final String [ ] newPreReleaseParts = incrementIdentifier ( this . preReleaseParts ) ; return new Version ( this . major , this . minor , this . patch , newPreReleaseParts , EMPTY_ARRAY ) ; }
Derives a new Version instance from this one by only incrementing the pre - release identifier . The build - meta - data will be dropped all other fields remain the same .