diff options
Diffstat (limited to 'main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java')
-rw-r--r-- | main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java b/main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java index f97107f7..9ad9be28 100644 --- a/main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java +++ b/main/src/main/java/org/onap/policy/pap/main/rest/depundep/GroupData.java @@ -61,6 +61,15 @@ public class GroupData { } /** + * Determines if the group is unchanged (i.e., neither new nor updated). + * + * @return {@code true} if the group is unchanged, {@code false} otherwise + */ + public boolean isUnchanged() { + return (state == State.UNCHANGED); + } + + /** * Determines if the group is new. * * @return {@code true} if the group is new, {@code false} otherwise |