118 lines
3.0 KiB
Java
118 lines
3.0 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* javax.baja.sys.BAbsTime
|
|
*/
|
|
package com.tridium.alarm.db.file;
|
|
|
|
import javax.baja.alarm.BAlarmRecord;
|
|
import javax.baja.sys.BAbsTime;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class IndexEntry {
|
|
public static final int FLAG_OPEN = 1;
|
|
public static final int FLAG_ACKED = 2;
|
|
public static final int FLAG_NORMAL = 4;
|
|
public static final int FLAG_ACK_PENDING = 8;
|
|
public final BAbsTime timestamp;
|
|
public final int pageIndex;
|
|
public IndexEntry[] nextTimestamp;
|
|
public IndexEntry prevTimestamp;
|
|
public IndexEntry[] nextSource;
|
|
public IndexEntry prevSource;
|
|
public byte flags;
|
|
public IndexEntry prevOpen;
|
|
public IndexEntry nextOpen;
|
|
public IndexEntry prevAckPending;
|
|
public IndexEntry nextAckPending;
|
|
|
|
public boolean equals(Object object) {
|
|
IndexEntry indexEntry = (IndexEntry)object;
|
|
if (this.timestamp == null && indexEntry.timestamp == null) {
|
|
return true;
|
|
}
|
|
if (this.timestamp == null || indexEntry.timestamp == null) {
|
|
return false;
|
|
}
|
|
boolean bl = false;
|
|
if (this.timestamp.equals((Object)indexEntry.timestamp) && this.pageIndex == indexEntry.pageIndex) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public final boolean isOpen() {
|
|
boolean bl = false;
|
|
if ((this.flags & 1) != 0) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public final void setOpen(boolean bl) {
|
|
this.flags = bl ? (byte)(this.flags | 1) : (byte)(this.flags & 0xFFFFFFFE);
|
|
}
|
|
|
|
public final boolean isAcked() {
|
|
boolean bl = false;
|
|
if ((this.flags & 2) != 0) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public final void setAcked(boolean bl) {
|
|
this.flags = bl ? (byte)(this.flags | 2) : (byte)(this.flags & 0xFFFFFFFD);
|
|
}
|
|
|
|
public final boolean isNormal() {
|
|
boolean bl = false;
|
|
if ((this.flags & 4) != 0) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public final void setNormal(boolean bl) {
|
|
this.flags = bl ? (byte)(this.flags | 4) : (byte)(this.flags & 0xFFFFFFFB);
|
|
}
|
|
|
|
public final boolean isAckPending() {
|
|
boolean bl = false;
|
|
if ((this.flags & 8) != 0) {
|
|
bl = true;
|
|
}
|
|
return bl;
|
|
}
|
|
|
|
public final void setAckPending(boolean bl) {
|
|
this.flags = bl ? (byte)(this.flags | 8) : (byte)(this.flags & 0xFFFFFFF7);
|
|
}
|
|
|
|
private final /* synthetic */ void this() {
|
|
this.flags = 0;
|
|
}
|
|
|
|
public IndexEntry() {
|
|
this.this();
|
|
this.timestamp = null;
|
|
this.pageIndex = -1;
|
|
}
|
|
|
|
public IndexEntry(BAlarmRecord bAlarmRecord, int n) {
|
|
this.this();
|
|
this.timestamp = bAlarmRecord.getTimestamp();
|
|
this.pageIndex = n;
|
|
}
|
|
|
|
public IndexEntry(BAbsTime bAbsTime, int n) {
|
|
this.this();
|
|
this.timestamp = bAbsTime;
|
|
this.pageIndex = n;
|
|
}
|
|
}
|
|
|