protected boolean configEquals ( SyncToolConfig currConfig , SyncToolConfig prevConfig ) { boolean sameHost = currConfig . getHost ( ) . equals ( prevConfig . getHost ( ) ) ; boolean sameSpaceId = currConfig . getSpaceId ( ) . equals ( prevConfig . getSpaceId ( ) ) ; boolean sameStoreId = sameConfig ( currConfig . getStoreId ( ) , prevConfig . getStoreId ( ) ) ; boolean sameSyncDeletes = currConfig . syncDeletes ( ) == prevConfig . syncDeletes ( ) ; boolean sameContentDirs = currConfig . getContentDirs ( ) . equals ( prevConfig . getContentDirs ( ) ) ; boolean sameSyncUpdates = currConfig . isSyncUpdates ( ) == prevConfig . isSyncUpdates ( ) ; boolean sameRenameUpdates = currConfig . isRenameUpdates ( ) == prevConfig . isRenameUpdates ( ) ; boolean sameExclude = sameConfig ( currConfig . getExcludeList ( ) , prevConfig . getExcludeList ( ) ) ; boolean samePrefix = sameConfig ( currConfig . getPrefix ( ) , prevConfig . getPrefix ( ) ) ; if ( sameHost && sameSpaceId && sameStoreId && sameSyncDeletes && sameContentDirs && sameSyncUpdates && sameRenameUpdates && sameExclude && samePrefix ) { return true ; } return false ; }
Determines if two sets of configuration are equal enough to indicate that the content to be reviewed for sync operations has not changed on either the local or remote end suggesting that a re - start would be permissable .