//# __________ PROTOCOL :: INSTANCE CREATION __________ #// public static JwTimeInterval CreateTimeInterval(JwTime start, JwTime end) { JwTimeInterval ti; ti = new JwTimeInterval(); ti.SetStart(start); ti.SetEnd(end); return ti; }
public bool ContainsExclusive(JwTimeInterval ti) { if ( ti == null ) return false; return ContainsExclusive(ti.GetStart()) && ContainsExclusive(ti.GetEnd()); }
public bool Contains(JwTimeInterval ti) { return ContainsInclusive(ti); }
public bool Intersects(JwTimeInterval ti) { if ( ti == null ) return false; if ( Contains(ti.GetStart()) ) return true; if ( Contains(ti.GetEnd()) ) return true; if ( ti.Contains(GetStart()) ) return true; return false; }
//# __________ PROTOCOL :: COPY __________ #// public JwTimeInterval GetTimeIntervalCopy() { JwTimeInterval e; e = new JwTimeInterval(); if ( HasStart() ) e.SetStart(GetStart().GetTimeCopy()); if ( HasEnd() ) e.SetEnd(GetEnd().GetTimeCopy()); return e; }