public static boolean verifyCommand ( String command ) { return command . equals ( PLAY ) || command . equals ( PAUSE ) || command . equals ( STOP ) || command . equals ( SELECT_TRACK ) || command . equals ( NEXT ) || command . equals ( PREVIOUS ) || command . equals ( CHANGE_PLAYBACK ) || command . equals ( CHANGE_VOLUME ) ; }
verifies that an command is not malformed