X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-backend%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fmodel%2FRanDetailsTransport.java;h=130a1c56d34625794f87bcdde7898ae46db1827d;hb=refs%2Fchanges%2F58%2F2258%2F2;hp=1053cfca5fc8945b28da37b2e058e3d70aa764a0;hpb=93a44cb851a49c923126f32016646860d104075c;p=portal%2Fric-dashboard.git diff --git a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/RanDetailsTransport.java b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/RanDetailsTransport.java index 1053cfca..130a1c56 100644 --- a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/RanDetailsTransport.java +++ b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/RanDetailsTransport.java @@ -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. @@ -17,13 +17,12 @@ * 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,36 +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().getName() + "[nodebIdentity=" + getNodebIdentity() + ", nodebStatus=" + getNodebStatus() + + "]"; } }