public static boolean isChanged ( Partitions o1 , Partitions o2 ) { if ( o1 . size ( ) != o2 . size ( ) ) { return true ; } for ( RedisClusterNode base : o2 ) { if ( ! essentiallyEqualsTo ( base , o1 . getPartitionByNodeId ( base . getNodeId ( ) ) ) ) { return true ; } } return false ; }
Check if properties changed which are essential for cluster operations .