2026-03-17 13:31:18 -07:00

46 lines
1.3 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package com.tridium.sys.module;
import com.tridium.sys.module.NModule;
import javax.baja.util.Version;
public class Dependency {
public final String name;
public final Version bajaVersion;
public final String vendor;
public final Version vendorVersion;
NModule resolution;
public String toString() {
StringBuffer stringBuffer = new StringBuffer(this.name);
if (this.bajaVersion != null) {
stringBuffer.append('-').append(this.bajaVersion);
}
if (this.vendor != null) {
stringBuffer.append('-').append(this.vendor);
if (this.vendorVersion != null) {
stringBuffer.append('-').append(this.vendorVersion);
}
}
if (this.resolution != null) {
stringBuffer.append(" -> ").append(this.resolution);
}
return stringBuffer.toString();
}
public Dependency(String string, Version version, String string2, Version version2) {
this.name = string;
this.bajaVersion = version;
this.vendor = string2;
this.vendorVersion = version2;
}
public Dependency(String string, Version version, String string2, Version version2, NModule nModule) {
this(string, version, string2, version2);
this.resolution = nModule;
}
}