diff options
author | Jorge Hernandez <jorge.hernandez-herrero@att.com> | 2019-03-27 16:29:58 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-27 16:29:58 +0000 |
commit | 2141dc0263940c94bf4265c6ca0072d9130a8ead (patch) | |
tree | f9be1058dc0f211b5d9d28661e7da1b2cb809bc6 | |
parent | 95dbf7256c17aa4376fa2a291ce26301cbce7029 (diff) | |
parent | c22a522629ab2bec4a17851030617926e2c2f306 (diff) |
Merge "Add PfConceptKey.isVersionNull()"
-rw-r--r-- | models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java b/models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java index 84239e5eb..ee476e3b2 100644 --- a/models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java +++ b/models-base/src/main/java/org/onap/policy/models/base/PfConceptKey.java @@ -1,6 +1,7 @@ -/*- +/* * ============LICENSE_START======================================================= * Copyright (C) 2019 Nordix Foundation. + * ModificationsCopyright (C) 2019 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -134,6 +135,15 @@ public class PfConceptKey extends PfKey { return this.equals(PfConceptKey.getNullKey()); } + /** + * Determines if the version is "null". + * + * @return {@code true} if the version is null, {@code false} otherwise + */ + public boolean isNullVersion() { + return PfKey.NULL_KEY_VERSION.equals(getVersion()); + } + @Override public PfKey.Compatibility getCompatibility(@NonNull final PfKey otherKey) { if (!(otherKey instanceof PfConceptKey)) { |