예제 #1
0
 //# __________ PROTOCOL :: INSTANCE CREATION __________ #//
 public static JwDateInterval CreateDateInterval(JwDate start, JwDate end)
 {
     JwDateInterval di;
     di = new JwDateInterval();
     di.Start = start;
     di.End = end;
     return di;
 }
예제 #2
0
 public bool intersects(JwDateInterval di)
 {
     if ( di == null ) return false;
     if ( Contains(di.Start) ) return true;
     if ( Contains(di.End) ) return true;
     if ( di.Contains(Start) ) return true;
     return false;
 }
예제 #3
0
 public bool ContainsInclusive(JwDateInterval di)
 {
     if ( di == null ) return false;
     return ContainsInclusive(di.Start) &&
         ContainsInclusive(di.End);
 }
예제 #4
0
 //# __________ PROTOCOL :: COPY __________ #//
 public JwDateInterval GetDateIntervalCopy()
 {
     JwDateInterval e;
     e = new JwDateInterval();
     if ( HasStart() ) e.Start = Start.GetDateCopy();
     if ( HasEnd() )   e.End = End.GetDateCopy();
     return e;
 }
예제 #5
0
 public bool Contains(JwDateInterval di)
 {
     return ContainsInclusive(di);
 }