cs.arizona.tau.time
Class Period

java.lang.Object
  extended by cs.arizona.tau.time.Period

public class Period
extends java.lang.Object


Constructor Summary
Period(java.util.Date start, java.util.Date end)
           
Period(java.lang.String start, java.lang.String end)
           
 
Method Summary
 boolean contains(java.util.Date date)
           
 boolean isAfter(Period other)
           
 boolean isBefore(Period other)
           
 boolean isDuring(Period other)
           
static java.util.List<Period> split(Period A, Period B)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Period

public Period(java.lang.String start,
              java.lang.String end)
       throws java.text.ParseException
Throws:
java.text.ParseException

Period

public Period(java.util.Date start,
              java.util.Date end)
Method Detail

isBefore

public boolean isBefore(Period other)

isAfter

public boolean isAfter(Period other)

isDuring

public boolean isDuring(Period other)

contains

public boolean contains(java.util.Date date)

split

public static java.util.List<Period> split(Period A,
                                           Period B)