public ModuleVersionIdentifier getFrom() { ModuleComponentIdentifier moduleComponentIdentifier = dependency.getFrom().getId(); return DefaultModuleVersionIdentifier.newId( moduleComponentIdentifier.getGroup(), moduleComponentIdentifier.getName(), moduleComponentIdentifier.getVersion()); }
public boolean matchesStrictly(ComponentIdentifier identifier) { assert identifier != null : "identifier cannot be null"; if (identifier instanceof ModuleComponentIdentifier) { ModuleComponentIdentifier moduleComponentIdentifier = (ModuleComponentIdentifier) identifier; return moduleComponentIdentifier.getName().equals(getName()) && moduleComponentIdentifier.getGroup().equals(getGroup()) && moduleComponentIdentifier.getVersion().equals(getVersion()); } return false; }
public MavenUniqueSnapshotComponentIdentifier( ModuleComponentIdentifier baseIdentifier, String timestamp) { super(baseIdentifier.getGroup(), baseIdentifier.getModule(), baseIdentifier.getVersion()); this.timestamp = timestamp; }