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

90 lines
2.4 KiB
Java

/*
* Decompiled with CFR 0.152.
*/
package javax.baja.util;
import javax.baja.sys.BAbsTime;
import javax.baja.sys.BStruct;
import javax.baja.sys.BValue;
import javax.baja.sys.Context;
import javax.baja.sys.Property;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;
/*
* Illegal identifiers - consider using --renameillegalidents true
*/
public class BAbsTimeRange
extends BStruct {
public static final Property startTime = BAbsTimeRange.newProperty(0, BAbsTime.make(0L), null);
public static final Property endTime = BAbsTimeRange.newProperty(0, BAbsTime.END_OF_TIME, null);
public static final Type TYPE;
static /* synthetic */ Class class$javax$baja$util$BAbsTimeRange;
public BAbsTime getStartTime() {
return (BAbsTime)this.get(startTime);
}
public void setStartTime(BAbsTime bAbsTime) {
this.set(startTime, (BValue)bAbsTime, null);
}
public BAbsTime getEndTime() {
return (BAbsTime)this.get(endTime);
}
public void setEndTime(BAbsTime bAbsTime) {
this.set(endTime, (BValue)bAbsTime, null);
}
public Type getType() {
return TYPE;
}
public boolean includes(BAbsTime bAbsTime) {
boolean bl = false;
if (!bAbsTime.isBefore(this.getStartTime()) && !bAbsTime.isAfter(this.getEndTime())) {
bl = true;
}
return bl;
}
public String toString(Context context) {
return this.getStartTime().toString(context) + " - " + this.getEndTime().toString(context);
}
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 BAbsTimeRange() {
}
public BAbsTimeRange(BAbsTime bAbsTime, BAbsTime bAbsTime2) {
if (bAbsTime != null) {
this.setStartTime(bAbsTime);
}
if (bAbsTime2 != null) {
this.setEndTime(bAbsTime2);
}
}
static {
Class clazz = class$javax$baja$util$BAbsTimeRange;
if (clazz == null) {
clazz = class$javax$baja$util$BAbsTimeRange = BAbsTimeRange.class("[Ljavax.baja.util.BAbsTimeRange;", false);
}
TYPE = Sys.loadType(clazz);
}
}