
aQute.bnd.compatibility.GenericParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bndlib Show documentation
Show all versions of biz.aQute.bndlib Show documentation
bndlib: A Swiss Army Knife for OSGi
The newest version!
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)
this.bounds = new GenericType[] {
new GenericType(Object.class)
};
}
@Override
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();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy