All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aQute.bnd.compatibility.GenericParameter Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show 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 - 2024 Weber Informatics LLC | Privacy Policy