2 * ========================LICENSE_START=================================
5 * Copyright (C) 2019 AT&T Intellectual Property and Nokia
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ========================LICENSE_END===================================
21 package org.oransc.ric.portal.dashboard.model;
23 import org.oransc.ric.e2mgr.client.model.GetNodebResponse;
24 import org.oransc.ric.e2mgr.client.model.NodebIdentity;
26 public class RanDetailsTransport {
28 private NodebIdentity nodebIdentity;
29 private GetNodebResponse nodebStatus;
31 public RanDetailsTransport() {
34 public RanDetailsTransport(NodebIdentity nodebIdentity, GetNodebResponse nodebResponse) {
35 this.nodebIdentity = nodebIdentity;
36 this.nodebStatus = nodebResponse;
39 public NodebIdentity getNodebIdentity() {
43 public void setNodebIdentity(NodebIdentity nodebIdentity) {
44 this.nodebIdentity = nodebIdentity;
47 public GetNodebResponse getNodebStatus() {
51 public void setNodebStatus(GetNodebResponse nodebStatus) {
52 this.nodebStatus = nodebStatus;
55 public RanDetailsTransport nodebIdentity(NodebIdentity n) {
56 this.nodebIdentity = n;
60 public RanDetailsTransport nodebStatus(GetNodebResponse s) {
66 public int hashCode() {
69 result = prime * result + ((nodebIdentity == null) ? 0 : nodebIdentity.hashCode());
70 result = prime * result + ((nodebStatus == null) ? 0 : nodebStatus.hashCode());
75 public boolean equals(Object obj) {
80 if (getClass() != obj.getClass())
82 RanDetailsTransport other = (RanDetailsTransport) obj;
83 if (nodebIdentity == null) {
84 if (other.nodebIdentity != null)
86 } else if (!nodebIdentity.equals(other.nodebIdentity))
88 if (nodebStatus == null) {
89 if (other.nodebStatus != null)
91 } else if (!nodebStatus.equals(other.nodebStatus))