summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-fw
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-fw')
-rw-r--r--ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java5
-rw-r--r--ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java6
2 files changed, 11 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java
index 24e8731a..cac2fffa 100644
--- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java
+++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompUser.java
@@ -37,6 +37,7 @@
*/
package org.onap.portalsdk.core.restful.domain;
+import java.util.Objects;
import java.util.Set;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@@ -222,4 +223,8 @@ public class EcompUser implements Comparable<EcompUser> {
return this.loginId.equals(castOther.getLoginId());
}
+ @Override
+ public int hashCode() {
+ return Objects.hashCode(getLoginId());
+ }
}
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java
index 4ba41d6c..3d1b5ed5 100644
--- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java
+++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/PortalTimeoutVO.java
@@ -37,6 +37,8 @@
*/
package org.onap.portalsdk.core.restful.domain;
+import java.util.Objects;
+
public class PortalTimeoutVO implements Comparable<PortalTimeoutVO> {
private String jSessionId;
@@ -84,4 +86,8 @@ public class PortalTimeoutVO implements Comparable<PortalTimeoutVO> {
return this.getSessionTimOutMilliSec() == castOther.getSessionTimOutMilliSec();
}
+ @Override
+ public int hashCode() {
+ return Objects.hashCode(getSessionTimOutMilliSec());
+ }
}