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%2FAppTransport.java;h=abe026ba7e61ab2d6dc8ed85b2bc3df657260a72;hb=662cc613e80c4079fdf5a54ce3135652cb9ad9a1;hp=f4312caba1dfd09b9f71f85b68d7adb37b9ce6cf;hpb=80f26bbeef6caea8f9946e8a0e1a5e0319dacc38;p=portal%2Fric-dashboard.git diff --git a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/AppTransport.java b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/AppTransport.java index f4312cab..abe026ba 100644 --- a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/AppTransport.java +++ b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/AppTransport.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. @@ -21,9 +21,8 @@ package org.oransc.ric.portal.dashboard.model; /** - * Trivial model to transport available application from the App manager. I - * expect that system will soon add additional attributes. This allows coding to - * a structure rather than a scalar. + * Trivial model to transport available application details from the App + * manager. */ public class AppTransport implements IDashboardResponse { @@ -40,11 +39,11 @@ public class AppTransport implements IDashboardResponse { /** * Builds an object with the specified value. * - * @param s - * value to transport. + * @param n + * Name to transport */ - public AppTransport(String s) { - this.name = s; + public AppTransport(String n) { + this.name = n; } public String getName() { @@ -63,4 +62,9 @@ public class AppTransport implements IDashboardResponse { this.version = version; } + @Override + public String toString() { + return this.getClass().getName() + "[name=" + getName() + ", version=" + getVersion() + "]"; + } + }