package com.yahoo.jdisc.core; import org.osgi.framework.Bundle; import org.osgi.framework.Version; /** * A bundle's symbolic name and version. * * @author gjoranv */ public record BsnVersion(String symbolicName, Version version) { public BsnVersion(Bundle bundle) { this(bundle.getSymbolicName(), bundle.getVersion()); } public String toReadableString() { return symbolicName + " version:" + version; } }