View Javadoc
1   package org.kuali.common.util.condition;
2   
3   import java.util.Date;
4   
5   import com.google.common.base.Preconditions;
6   
7   /**
8    * @deprecated use AfterCondition instead
9    */
10  @Deprecated
11  public final class AfterDateCondition implements Condition {
12  
13  	private final AfterTimeCondition condition;
14  
15  	public AfterDateCondition(Date targetDate) {
16  		Preconditions.checkNotNull(targetDate, "'targetDate' cannot be null");
17  		this.condition = new AfterTimeCondition(targetDate.getTime());
18  	}
19  
20  	@Override
21  	public boolean isTrue() {
22  		return condition.isTrue();
23  	}
24  
25  	public Date getTargetDate() {
26  		return new Date(condition.getTargetTimeInMillis());
27  	}
28  
29  }