* ========================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;
}
@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() + "]";
}
}