public boolean isUpdateForVersionCode ( ) { Set < Integer > uniques = new HashSet < Integer > ( ) ; for ( VersionHistoryItem item : versionHistoryItems ) { uniques . add ( item . getVersionCode ( ) ) ; } return uniques . size ( ) > 1 ; }
Returns true if the current versionCode is not the first version or build that we have seen . Basically it just looks for two or more versionCodes .