@Override public boolean isCompatible(Furnace furnace, AddonId addonId) { return Versions.isApiCompatible(furnace.getVersion(), addonId.getApiVersion()); } },
@Override public int compareTo(AddonId other) { if (other == null) throw new IllegalArgumentException("Cannot compare against null."); int result = getName().compareTo(other.getName()); if (result == 0) result = getVersion().compareTo(other.getVersion()); if (result == 0) result = getApiVersion().compareTo(other.getApiVersion()); return result; }
org.jboss.forge.furnace.versions.Version addonAPIVersion = builder.getAddon().getApiVersion(); if (resolveAddonAPIVersions && (addonAPIVersion == null || EmptyVersion.getInstance().equals(addonAPIVersion)))