diff options
Diffstat (limited to 'main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java')
-rw-r--r-- | main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java b/main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java index a76d6e13..11b17e45 100644 --- a/main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java +++ b/main/src/main/java/org/onap/policy/pap/main/rest/depundep/SessionData.java @@ -207,6 +207,15 @@ public class SessionData { } /** + * Determines if any changes were made due to the REST call. + * + * @return {@code true} if nothing was changed, {@code false} if something was changed + */ + public boolean isUnchanged() { + return pdpRequests.isEmpty(); + } + + /** * Gets the accumulated PDP requests. * * @return the PDP requests |