main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java
/**
     * Adds an update and state-change to the sets, replacing any previous entries for the
     * given PDP.
     *
     * @param update the update to be added
     * @param change the state-change to be added
     */
Adds an update and state-change to the sets, replacing any previous entries for the
given PDP.

@param update the update to be added
@param change the state-change to be added
Adds an update and state - change to the sets replacing any previous entries for the given PDP . @param update the update to be added @param change the state - change to be added
public void addRequests(PdpUpdate update, PdpStateChange change) {
        if (!update.getName().equals(change.getName())) {
            throw new IllegalArgumentException("PDP name mismatch " + update.getName() + ", " + change.getName());
        }
        logger.info("add update and state-change {} {} {} policies={}", update.getName(), update.getPdpGroup(),
                        update.getPdpSubgroup(), update.getPolicies().size());
        pdpRequests.put(update.getName(), Pair.of(update, change));
    }
public void addRequests ( PdpUpdate update , PdpStateChange change ) { if ( ! update . getName ( ) . equals ( change . getName ( ) ) ) { throw new IllegalArgumentException ( "PDP name mismatch " + update . getName ( ) + ", " + change . getName ( ) ) ; } logger . info ( "add update and state-change {} {} {} policies={}" , update . getName ( ) , update . getPdpGroup ( ) , update . getPdpSubgroup ( ) , update . getPolicies ( ) . size ( ) ) ; pdpRequests . put ( update . getName ( ) , Pair . of ( update , change ) ) ; }
Adds an update and state-change to the sets, replacing any previous entries for the
 given PDP.
Adds an update and state - change to the sets replacing any previous entries for the given PDP .