private SyncState checkForElementStates ( SyncState ... states ) { if ( this . elements != null ) { for ( T elem : this . elements ) { for ( SyncState state : states ) { if ( elem . getSyncState ( ) != state ) return elem . getSyncState ( ) ; } } } return null ; }
check all elements if their state is one of the given states