src/main/java/tsz/game/service/AchievementService.java
/**
	 * Decide whether the player earned the 'Professional' achievement.
	 * @param listOfData - collection of aal gameplay data.
	 * @param playername - name of the actual player.
	 * @return whether the given player's perfomance is eligable to unlock the 'Professional' achievement.
	 */
Decide whether the player earned the 'Professional' achievement.
@param listOfData - collection of aal gameplay data.
@param playername - name of the actual player.
@return whether the given player's perfomance is eligable to unlock the 'Professional' achievement.
Decide whether the player earned the ' Professional ' achievement . @param listOfData - collection of aal gameplay data . @param playername - name of the actual player . @return whether the given player ' s perfomance is eligable to unlock the ' Professional ' achievement .
public boolean isProfessional(Collection<GameData> listOfData, String playername) {
		logger.info("Professional achievement checked.");
		return listOfData.stream()
				.filter(d -> d.getFinalScore() >= 100 && d.getDifficulty().equals("hard"))
				.map(d -> d.getPlayerName())
				.collect(Collectors.toList()).contains(playername);
	}
public boolean isProfessional ( Collection < GameData > listOfData , String playername ) { logger . info ( "Professional achievement checked." ) ; return listOfData . stream ( ) . filter ( d -> d . getFinalScore ( ) >= 100 && d . getDifficulty ( ) . equals ( "hard" ) ) . map ( d -> d . getPlayerName ( ) ) . collect ( Collectors . toList ( ) ) . contains ( playername ) ; }
Decide whether the player earned the 'Professional' achievement.
Decide whether the player earned the ' Professional ' achievement .