@Override public Temporal intersect(Temporal t) { if (t == null) return this; if (t == TIME_UNKNOWN || t == DURATION_UNKNOWN) return this; if (t instanceof Time) { RelativeTime rt = new RelativeTime((Time) t, TemporalOp.INTERSECT, this); rt = (RelativeTime) rt.addMod(this.getMod()); return rt; } else if (t instanceof Range) { // return new TemporalSet(t, TemporalOp.INTERSECT, this); } else if (t instanceof Duration) { Duration d = (Duration) t; return intersect(d); } return null; }
public Temporal intersect(Temporal t) { if (t == null) return this; if (t == TIME_UNKNOWN || t == DURATION_UNKNOWN) return this; if (t instanceof Time) { RelativeTime rt = new RelativeTime((Time) t, TemporalOp.INTERSECT, this); rt = (RelativeTime) rt.addMod(this.getMod()); return rt; } else if (t instanceof Range) { // return new TemporalSet(t, TemporalOp.INTERSECT, this); } else if (t instanceof Duration) { Duration d = (Duration) t; return intersect(d); } return null; }
public Temporal intersect(Temporal t) { if (t == null) return this; if (t == TIME_UNKNOWN || t == DURATION_UNKNOWN) return this; if (t instanceof Time) { return new RelativeTime((Time) t, TemporalOp.INTERSECT, this); } else if (t instanceof Range) { // return new TemporalSet(t, TemporalOp.INTERSECT, this); } else if (t instanceof Duration) { Duration d = (Duration) t; return intersect(d); } return null; }
@Override public Temporal intersect(Temporal t) { if (t == null) return this; if (t == TIME_UNKNOWN || t == DURATION_UNKNOWN) return this; if (t instanceof Time) { RelativeTime rt = new RelativeTime((Time) t, TemporalOp.INTERSECT, this); rt = (RelativeTime) rt.addMod(this.getMod()); return rt; } else if (t instanceof Range) { // return new TemporalSet(t, TemporalOp.INTERSECT, this); } else if (t instanceof Duration) { Duration d = (Duration) t; return intersect(d); } return null; }