aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Blimkie <Steven.Blimkie@amdocs.com>2019-02-20 16:36:29 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-20 16:36:29 +0000
commit180b7e6b008b69a810a5f2f5db8ba7d01abcb63b (patch)
treeebbc421fbeb281242e6d242d70f35d846cdb3adb
parent88a81c3ffef8fcefc4ebefb3b37b2250908799e6 (diff)
parentf4ec2edb968de3c8d3202fddeb6452b10af40014 (diff)
Merge "bugfix: hashcode() implementation"
-rw-r--r--champ-lib/champ-core/src/main/java/org/onap/aai/champcore/model/ChampSchema.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/model/ChampSchema.java b/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/model/ChampSchema.java
index b91b5da..e4f3feb 100644
--- a/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/model/ChampSchema.java
+++ b/champ-lib/champ-core/src/main/java/org/onap/aai/champcore/model/ChampSchema.java
@@ -4,6 +4,7 @@
* ===================================================================
* Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
* Copyright © 2017-2018 Amdocs
+ * Copyright © 2019 IBM
* ===================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,6 +24,7 @@ package org.onap.aai.champcore.model;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
+import java.util.Objects;
import java.util.Optional;
import org.onap.aai.champcore.model.fluent.schema.CreateChampSchemable;
@@ -135,6 +137,11 @@ public final class ChampSchema {
}
@Override
+ public int hashCode() {
+ return Objects.hash(objectConstraints, relationshipConstraints);
+ }
+
+ @Override
public String toString() {
return "{objectConstraints: " + getObjectConstraints() +
", relationshipConstraints: " + getRelationshipConstraints() +