2 * ========================LICENSE_START=================================
5 * Copyright (C) 2020 AT&T Intellectual Property
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===================================
20 package org.oransc.ric.portal.dashboard.model;
22 public class StatsDetailsTransport implements IDashboardResponse {
25 private String appName;
26 private String metricUrl;
28 public StatsDetailsTransport(int appId, String appName, String metricUrl) {
30 this.appName = appName;
31 this.metricUrl = metricUrl;
34 public int getAppId() {
38 public void setAppId(int appId) {
42 public StatsDetailsTransport() {
45 public String getAppName() {
49 public void setAppName(String appName) {
50 this.appName = appName;
53 public String getMetricUrl() {
57 public void setMetricUrl(String metricUrl) {
58 this.metricUrl = metricUrl;
62 public String toString() {
63 return this.getClass().getName() + "[appId=" + getAppId() + ", appName=" + getAppName() + ", metricUrl="
64 + getMetricUrl() + "]";
68 public boolean equals(Object obj) {
73 if (getClass() != obj.getClass())
75 StatsDetailsTransport other = (StatsDetailsTransport) obj;
76 return appId == other.appId;
80 public int hashCode() {
82 int result = super.hashCode();
83 result = prime * result + appId;
84 result = prime * result + ((appName == null) ? 0 : appName.hashCode());
85 result = prime * result + ((metricUrl == null) ? 0 : metricUrl.hashCode());