96 lines
2.6 KiB
Java
96 lines
2.6 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* javax.baja.naming.BOrdList
|
|
* javax.baja.sys.BObject
|
|
* javax.baja.sys.Context
|
|
* javax.baja.sys.Sys
|
|
* javax.baja.sys.Type
|
|
*/
|
|
package javax.baja.alarm;
|
|
|
|
import java.util.Comparator;
|
|
import javax.baja.alarm.BAlarmRecord;
|
|
import javax.baja.naming.BOrdList;
|
|
import javax.baja.sys.BObject;
|
|
import javax.baja.sys.Context;
|
|
import javax.baja.sys.Sys;
|
|
import javax.baja.sys.Type;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class BAlarmSource
|
|
extends BObject {
|
|
public static final Type TYPE;
|
|
private BOrdList sourceOrdList;
|
|
private BAlarmRecord currentAlarm;
|
|
static /* synthetic */ Class class$javax$baja$alarm$BAlarmSource;
|
|
|
|
public BOrdList getSourceOrdList() {
|
|
return this.sourceOrdList;
|
|
}
|
|
|
|
public BAlarmRecord getCurrentAlarm() {
|
|
return this.currentAlarm;
|
|
}
|
|
|
|
public void setCurrentAlarm(BAlarmRecord bAlarmRecord) {
|
|
this.currentAlarm = bAlarmRecord;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.sourceOrdList.hashCode();
|
|
}
|
|
|
|
public boolean equals(Object object) {
|
|
if (!(object instanceof BAlarmSource)) {
|
|
return false;
|
|
}
|
|
return ((BAlarmSource)((Object)object)).sourceOrdList.equals((Object)this.sourceOrdList);
|
|
}
|
|
|
|
public String toString(Context context) {
|
|
return this.currentAlarm.toString(context);
|
|
}
|
|
|
|
public Type getType() {
|
|
return TYPE;
|
|
}
|
|
|
|
static /* synthetic */ Class class(String string, boolean bl) {
|
|
try {
|
|
Class<?> clazz = Class.forName(string);
|
|
if (!bl) {
|
|
clazz = clazz.getComponentType();
|
|
}
|
|
return clazz;
|
|
}
|
|
catch (ClassNotFoundException classNotFoundException) {
|
|
throw new NoClassDefFoundError(classNotFoundException.getMessage());
|
|
}
|
|
}
|
|
|
|
public BAlarmSource(BOrdList bOrdList, BAlarmRecord bAlarmRecord) {
|
|
this.sourceOrdList = bOrdList;
|
|
this.currentAlarm = bAlarmRecord;
|
|
}
|
|
|
|
static {
|
|
Class clazz = class$javax$baja$alarm$BAlarmSource;
|
|
if (clazz == null) {
|
|
clazz = class$javax$baja$alarm$BAlarmSource = BAlarmSource.class("[Ljavax.baja.alarm.BAlarmSource;", false);
|
|
}
|
|
TYPE = Sys.loadType((Class)clazz);
|
|
}
|
|
|
|
public static class SourceComparator
|
|
implements Comparator {
|
|
public int compare(Object object, Object object2) {
|
|
return ((BAlarmSource)((Object)object)).getCurrentAlarm().getTimestamp().compareTo((Object)((BAlarmSource)((Object)object2)).getCurrentAlarm().getTimestamp());
|
|
}
|
|
}
|
|
}
|
|
|