2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.config.yangjmxgenerator.plugin.ftl;
13 * Output string representing java notation of generic class, e.g.
14 * "List<String>" for input parameters List.class, String.class
16 static String getGenericType(Class<?> type, Class<?>... parameters) {
17 StringBuilder sb = new StringBuilder();
18 sb.append(type.getCanonicalName());
19 if (parameters.length > 0) {
22 for (Class<?> parameter : parameters) {
28 sb.append(parameter.getCanonicalName());