Add multi-layer RIC instance selector
[portal/ric-dashboard.git] / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / model / RanDetailsTransport.java
index 3162056..bb581aa 100644 (file)
@@ -2,7 +2,7 @@
  * ========================LICENSE_START=================================
  * O-RAN-SC
  * %%
- * Copyright (C) 2019 AT&T Intellectual Property and Nokia
+ * Copyright (C) 2019 AT&T Intellectual Property
  * %%
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * limitations under the License.
  * ========================LICENSE_END===================================
  */
-
 package org.oransc.ric.portal.dashboard.model;
 
 import org.oransc.ric.e2mgr.client.model.GetNodebResponse;
 import org.oransc.ric.e2mgr.client.model.NodebIdentity;
 
-public class RanDetailsTransport {
+public class RanDetailsTransport implements IDashboardResponse {
 
        private NodebIdentity nodebIdentity;
        private GetNodebResponse nodebStatus;
@@ -63,34 +62,9 @@ public class RanDetailsTransport {
        }
 
        @Override
-       public int hashCode() {
-               final int prime = 31;
-               int result = 1;
-               result = prime * result + ((nodebIdentity == null) ? 0 : nodebIdentity.hashCode());
-               result = prime * result + ((nodebStatus == null) ? 0 : nodebStatus.hashCode());
-               return result;
-       }
-
-       @Override
-       public boolean equals(Object obj) {
-               if (this == obj)
-                       return true;
-               if (obj == null)
-                       return false;
-               if (getClass() != obj.getClass())
-                       return false;
-               RanDetailsTransport other = (RanDetailsTransport) obj;
-               if (nodebIdentity == null) {
-                       if (other.nodebIdentity != null)
-                               return false;
-               } else if (!nodebIdentity.equals(other.nodebIdentity))
-                       return false;
-               if (nodebStatus == null) {
-                       if (other.nodebStatus != null)
-                               return false;
-               } else if (!nodebStatus.equals(other.nodebStatus))
-                       return false;
-               return true;
+       public String toString() {
+               return this.getClass().getSimpleName() + "[nodebIdentity=" + getNodebIdentity() + ", nodebStatus="
+                               + getNodebStatus() + "]";
        }
 
 }