aQute.bnd.runtime.gogo.Export Maven / Gradle / Ivy
The newest version!
package aQute.bnd.runtime.gogo;
import java.util.Set;
import java.util.TreeSet;
class Export {
String pack;
Set exporters = new TreeSet<>();
Set privates = new TreeSet<>();
Export(String packageName) {
pack = packageName;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(state())
.append(" ")
.append(pack);
if (!exporters.isEmpty()) {
sb.append(" exporters=")
.append(exporters);
}
if (!privates.isEmpty()) {
sb.append(" privates=")
.append(privates);
}
return sb.toString();
}
private String state() {
return privates.isEmpty() ? " " : "!";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy