src/main/java/it/unibo/bd1819/reducers/FindThreeActorsReducer.java
private void processActor(Map<String,Integer> actorsMap, String actorID, String actorFrequency) {
        if (!actorsMap.containsKey(actorID)) {
            actorsMap.put(actorID, Integer.parseInt(actorFrequency));
        } else {
            actorsMap.put(actorID, actorsMap.get(actorID) + Integer.parseInt(actorFrequency));
        }
    }
/**
     * Store the frequency of an actorID in the collection.
     * @param actorsMap the collection to store the frequencies for each actor.
     * @param actorID the actorID to process.
     * @param actorFrequency the frequency of the actor
     */
Store the frequency of an actorID in the collection.
@param actorsMap the collection to store the frequencies for each actor.
@param actorID the actorID to process.
@param actorFrequency the frequency of the actor
Store the frequency of an actorID in the collection . @param actorsMap the collection to store the frequencies for each actor . @param actorID the actorID to process . @param actorFrequency the frequency of the actor
private void processActor(Map<String,Integer> actorsMap, String actorID, String actorFrequency) {
        if (!actorsMap.containsKey(actorID)) {
            actorsMap.put(actorID, Integer.parseInt(actorFrequency));
        } else {
            actorsMap.put(actorID, actorsMap.get(actorID) + Integer.parseInt(actorFrequency));
        }
    }
private void processActor ( Map < String , Integer > actorsMap , String actorID , String actorFrequency ) { if ( ! actorsMap . containsKey ( actorID ) ) { actorsMap . put ( actorID , Integer . parseInt ( actorFrequency ) ) ; } else { actorsMap . put ( actorID , actorsMap . get ( actorID ) + Integer . parseInt ( actorFrequency ) ) ; } }
Store the frequency of an actorID in the collection.
Store the frequency of an actorID in the collection .