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=bb581aa8599d862e096e003b0e5c0da5cd508a49;hb=a0180adc6a1e1ec09472549596428b70d48db3fc;hp=3162056bf7048fd4cdbd9430cd02420767c4b628;hpb=5b686151904e2582ea9ce9d2f1c6abb7a400afa5;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 3162056b..bb581aa8 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,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() + "]"; } }