public boolean verify ( Capabilities capabilities ) { for ( PlaybackMode playbackMode : playbackModes ) { switch ( playbackMode ) { case REPEAT : if ( ! capabilities . canRepeatPlayback ( ) ) { return false ; } else { break ; } case REPEAT_SONG : if ( ! capabilities . canRepeatPlaybackOfSong ( ) ) { return false ; } else { break ; } case SHUFFLE : if ( ! capabilities . canShufflePlayback ( ) ) { return false ; } else { break ; } } } return true ; }
returns true if all the active playbackModes are supported