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

70 lines
1.7 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* javax.baja.sys.Type
* javax.baja.util.BTypeSpec
*/
package com.tridium.install;
import com.tridium.install.part.BModulePart;
import javax.baja.sys.Type;
import javax.baja.util.BTypeSpec;
public class PartSpec
implements Comparable {
private String spec;
private String partName;
private BTypeSpec partType;
public static PartSpec forModule(String string) {
return new PartSpec(string, BModulePart.TYPE);
}
public String getPartName() {
return this.partName;
}
public BTypeSpec getPartType() {
return this.partType;
}
public boolean equals(Object object) {
boolean bl = false;
if (object instanceof PartSpec && ((PartSpec)object).spec.equals(this.spec)) {
bl = true;
}
return bl;
}
public String toString() {
return this.spec;
}
public int hashCode() {
return this.spec.hashCode();
}
public int compareTo(Object object) {
if (this == object) {
return 0;
}
PartSpec partSpec = (PartSpec)object;
if (this.getPartType().equals((Object)partSpec.getPartType())) {
return this.getPartName().compareTo(partSpec.getPartName());
}
return this.getPartType().toString().compareTo(partSpec.getPartType().toString());
}
public PartSpec(String string, Type type) {
this(string, type.getTypeSpec());
}
public PartSpec(String string, BTypeSpec bTypeSpec) {
this.spec = string + ':' + bTypeSpec.toString();
this.partName = string;
this.partType = bTypeSpec;
}
}