org.kuali.student.enrollment.class1.hold.util
Class EffectiveDateUtils

java.lang.Object
  extended by org.kuali.student.enrollment.class1.hold.util.EffectiveDateUtils

public final class EffectiveDateUtils
extends Object

Author:
ocleirig A helper for effective date comparisons.

Method Summary
static boolean isTargetDateEffective(Date startDate, Date endDate, Date targetDate)
          The targetDate is effective if: 1.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isTargetDateEffective

public static boolean isTargetDateEffective(Date startDate,
                                            Date endDate,
                                            Date targetDate)
The targetDate is effective if: 1. startDate <= targetDate 2. targetDate <= endDate or endDate is null.

Parameters:
startDate - the begining of the date range.
endDate - the end of the date range or null if no end has been set.
targetDate - the time of interest that we want to determine to be inside or outside of the date range.
Returns:
true if the targetDate is effective, false otherwise.


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.