blob: 1eac28c1d0bc98bfe2d7b8ef6655988e68171231 [file] [log] [blame]
package aQute.bnd.compatibility;
public class GenericParameter {
String name;
GenericType bounds[];
public GenericParameter(String name, GenericType[] bounds) {
this.name = name;
this.bounds = bounds;
if (bounds == null || bounds.length == 0)
bounds = new GenericType[] { new GenericType( Object.class) };
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(name);
if ( bounds != null && bounds.length > 0) {
for ( GenericType gtype : bounds ) {
sb.append( ":");
sb.append(gtype);
}
}
return sb.toString();
}
}